aboutsummaryrefslogtreecommitdiff
path: root/myproject/myproject/items.py
blob: 99e70edb76467560194d134fb01047377f20b014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)