Skip to content

Instantly share code, notes, and snippets.

@Superbil
Last active December 21, 2015 07:38
Show Gist options
  • Save Superbil/6272154 to your computer and use it in GitHub Desktop.
Save Superbil/6272154 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
# Example
# {"expanded":false,
# "classes":"folder",
# "hasChildren":true,
# "id":"100000000A",
# "text":"國民大會(100000000A)",
# "children":null}
from scrapy.item import Item, Field
class DGPAItem(Item):
orgID = Field()
name = Field()
hasChildren = Field()
classes = Field()
class DGPADetailItem(Item):
name = Field()
orgID = Field()
tel = Field()
fax = Field()
address = Field()
url = Field()
email = Field()
google_map = Field()
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class ShowdataItem(Item):
dn = Field()
level = Field()
title = Field()
class OIDItem(Item):
oid = Field()
oid_name = Field()
dn = Field()
fax = Field()
tel = Field()
email = Field()
address = Field()
postal_address = Field()
up_gov = Field()
url = Field()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment