-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 347-add_docstrings
- Loading branch information
Showing
55 changed files
with
301 additions
and
595 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
import scrapy | ||
|
||
# Define here the models for your scraped items | ||
# | ||
# See documentation in: | ||
# https://docs.scrapy.org/en/latest/topics/items.html | ||
|
||
import scrapy | ||
class File(scrapy.Item): | ||
file_name = scrapy.Field() | ||
url = scrapy.Field() | ||
data = scrapy.Field() | ||
data_type = scrapy.Field() | ||
encoding = scrapy.Field() | ||
|
||
# If a file is split into file items, the file is stored to disk, but not sent to Kingfisher Process. | ||
post_to_api = scrapy.Field() | ||
|
||
# Added by the KingfisherFilesStore extension, for the KingfisherProcessAPI extension to read the file. | ||
path = scrapy.Field() | ||
files_store = scrapy.Field() | ||
|
||
|
||
class FileItem(scrapy.Item): | ||
number = scrapy.Field() | ||
file_name = scrapy.Field() | ||
url = scrapy.Field() | ||
data = scrapy.Field() | ||
data_type = scrapy.Field() | ||
encoding = scrapy.Field() | ||
|
||
|
||
class KingfisherScrapyItem(scrapy.Item): | ||
# define the fields for your item here like: | ||
# name = scrapy.Field() | ||
pass | ||
class FileError(scrapy.Item): | ||
file_name = scrapy.Field() | ||
url = scrapy.Field() | ||
errors = scrapy.Field() |
This file contains 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
This file contains 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
Oops, something went wrong.