Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def download_story(story_id):

for part in storyinfo['parts']:
chapter_title = part['title']
chapter_id = part['id']

if part['draft']:
print('Skipping "{chapter_title}": {chapter_id}, part is draft'.format(chapter_title=chapter_title, chapter_id=chapter_id))
Expand All @@ -75,8 +76,6 @@ def download_story(story_id):
print('Skipping "{chapter_title}": {chapter_id}, part is deleted'.format(chapter_title=chapter_title, chapter_id=chapter_id))
continue

chapter_id = part['id']

# TODO: could intelligently only redownload modified parts
chapter_modifyDate = dateutil.parser.parse(part['modifyDate'])

Expand Down