Advertisement
vlpap

items.py

Feb 25th, 2021
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. import scrapy
  2. from scrapy.loader.processors import TakeFirst
  3.  
  4. class Lesson03ScrapingItem(scrapy.Item):
  5.     # define the fields for your item here like:
  6.     # name = scrapy.Field()
  7.     quote_content = scrapy.Field(output_processor=TakeFirst())
  8.     author = scrapy.Field(output_processor=TakeFirst())
  9.     tags = scrapy.Field()
  10.     pass
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement