-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved file saving: All files saved and opened with UTF-8 encoding, and UnicodeErrors are ignored.
- Loading branch information
Showing
5 changed files
with
91 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
OVERWRITE = False | ||
RAISE_ERRORS = False | ||
SAVE_PAGES = True | ||
SAVE_WORDS = False | ||
ZIP_FILES = False | ||
|
||
# Whether to restrict crawling to a single domain or not. | ||
RESTRICT = True | ||
|
||
# The domain within which to restrict crawling. | ||
DOMAIN = 'wsj.com/' | ||
|
||
TODO_FILE = 'wsj_todo.txt' | ||
DONE_FILE = 'wsj_done.txt' | ||
WORD_FILE = 'wsj_words.txt' | ||
BAD_FILE = 'wsj_bad.txt' | ||
SAVE_COUNT = 60 | ||
HEADER = HEADERS['spidy'] | ||
MAX_NEW_ERRORS = 100 | ||
MAX_KNOWN_ERRORS = 100 | ||
MAX_HTTP_ERRORS = 100 | ||
MAX_NEW_MIMES = 5 | ||
START = ['https://www.wsj.com/'] |
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
Binary file not shown.