Ackater / writing.com-archival

Utility for downloading Interactives from Writing.com
https://ackater.github.io/writing.com-archival
23 stars 3 forks source link

ParserError config.yaml #41

Open SomeRandomDude870 opened 2 years ago

SomeRandomDude870 commented 2 years ago

Hi, I get there an Parsererror.

``python archiver.py get 1884280-Girlfriends-Futanari-Secret Traceback (most recent call last): File "D:\writing.com-archival\archiver.py", line 1, in from scraper import get_story_info, get_outline, get_chapter, get_all_interactives_list, get_recent_chapters File "D:\writing.com-archival\scraper.py", line 13, in from session import get_page, get_page_search File "D:\writing.com-archival\session.py", line 25, in config_yaml = yaml.load(file, Loader=yaml.FullLoader) File "C:\Users\AppData\Roaming\Python\Python310\site-packages\yaml__init__.py", line 81, in load return loader.get_single_data() File "C:\Users\AppData\Roaming\Python\Python310\site-packages\yaml\constructor.py", line 49, in get_single_data node = self.get_single_node() File "C:\Users\AppData\Roaming\Python\Python310\site-packages\yaml\composer.py", line 39, in get_single_node if not self.check_event(StreamEndEvent): File "C:\Users\AppData\Roaming\Python\Python310\site-packages\yaml\parser.py", line 98, in check_event self.current_event = self.state() File "C:\Users\AppData\Roaming\Python\Python310\site-packages\yaml\parser.py", line 171, in parse_document_start raise ParserError(None, None, yaml.parser.ParserError: expected '', but found '' in "config.yaml", line 7, column 1

Ackater commented 2 years ago

Looks like an issue with your config.yaml file?

SomeRandomDude870 commented 2 years ago

Yeah...but what?

`username:blaaaa password:blaaa

Puts the name of the story in the folder name for easier browsing

TODO not properly tested because I don't use it for the archive

May have issues if the name changes, leading to multiple copies

name_in_archive:True

Generates an index.html for each story

Also not used in the proper archive because browers can load additional data easily

But needed if you want to read locally without requiring a webserver

See issue #34

index_html_generation : True`

SomeRandomDude870 commented 2 years ago

No idea?

Ackater commented 2 years ago

Needs a space after the colon on line 7?