> --
> You received this message because you are subscribed to the Google Groups "scrapy-users" group.
> To post to this group, send email to scrapy...@googlegroups.com.
> To unsubscribe from this group, send email to scrapy-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scrapy-users?hl=en.
If you want to store the first value of each field, you have several options to
choose from:
1. add [0] after the extract() - easiest, but could fail if the list is empty
2. use loaders. the TakeFirst() processor does what you need.
http://doc.scrapy.org/topics/loaders.html
3. add a serializer for the field that returns the first value
http://doc.scrapy.org/topics/exporters.html#declaring-a-serializer-in-the-field
for example: Field(serializer=lambda x: x[0])