I am using scrapy 0.20.
I want to use item loader
this is my code:
l = XPathItemLoader(item=MyItemClass(), response=response)
l.add_value('url', response.url)
l.add_xpath('title',"my xpath")
l.add_xpath('developer', "my xpath")
return l.load_item()
I got the result in the json file. the url
is a list. The title
is a list. The developer
is a list.
How to extract single value instead of the list?
Should I make an item pipeline for that? I hope there is a faster way