Last active
December 21, 2015 07:38
-
-
Save Superbil/6272154 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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