diff options
Diffstat (limited to 'myproject/myproject/items.py')
-rw-r--r-- | myproject/myproject/items.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/myproject/myproject/items.py b/myproject/myproject/items.py new file mode 100644 index 0000000..99e70ed --- /dev/null +++ b/myproject/myproject/items.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +# Define here the models for your scraped items +# +# See documentation in: +# https://doc.scrapy.org/en/latest/topics/items.html + +import scrapy + + +class BlogPostItem(scrapy.Item): + # define the fields for your item here like: + title = scrapy.Field() + year = scrapy.Field() + date = scrapy.Field() + pass + + def __repr__(self): + return "{date} {year} - {title}".format(**self) |