Closed ProfHariSeldon closed 5 years ago
This seems like an error with the filesystem creating the actual file, hence the "OSError". Can you try manually creating that file? (Delete it afterwards)
I reran the download and this happened:
I opened 12.html and not all of its links to the next parts of the story work (for example 121.html is missing)
Are you on the newest master? Writing.com updated their html and broke the scraper. I updated it with 98a63ac
I downloaded the most recent version and it is much better but I still got this:
Can you run it again so that it will try to download the chapter again? I didn't come across any issues with chapters, but sometimes you'll get a timeout error or something with a request
That fixed it, thanks!
1897904-The-dictaphone: 2414/4915
Traceback (most recent call last): File "D:\Documents\writing\Archives\writing.com-archival-master\run.py", line 40, in
args.func(args)
File "D:\Documents\writing\Archives\writing.com-archival-master\run.py", line 18, in get
archive(id)
File "D:\Documents\writing\Archives\writing.com-archival-master\archiver.py", line 89, in archive
barf(story_root + descent + ".html", formatChapter(chapter,descent,canon_descents))
File "D:\Documents\writing\Archives\writing.com-archival-master\archiver.py", line 9, in barf
with open(filepath,'w',encoding='utf-8') as o:
OSError: [Errno 22] Invalid argument: 'archive/1897904-The-dictaphone/134311211111221111112122212211211111211212121221111121111111211111.html'