# -*- 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 GaowenboItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass
from scrapy.item import Item, Field
from scrapy.loader import ItemLoader
from scrapy.loader.processors import MapCompose, TakeFirst, Join

class ExampleItem(Item):
    name = Field()
    description = Field()
    link = Field()
    crawled = Field()
    spider = Field()
    url = Field()

class ExampleLoader(ItemLoader):
    default_item_class = ExampleItem
    default_input_processor = MapCompose(lambda s: s.strip())
    default_output_processor = TakeFirst()
    description_out = Join()

class StatsItem(scrapy.Item):
    prov_code=scrapy.Field()
    prov_name=scrapy.Field()
    city_code=scrapy.Field()
    city_name=scrapy.Field()
    county_code=scrapy.Field()
    county_name=scrapy.Field()
    town_code=scrapy.Field()
    town_name=scrapy.Field()
    village_code = scrapy.Field()
    village_name = scrapy.Field()