-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue getting write_html past generate_html #23
Comments
I pushed a fix, will you try again? |
So it look longer to print out an error this time, if it helps some of the reddit subs I'm pulling from use non-english characters (ex hindi, korean) frequently E:\Myfolder\reddittohtml>write_html.py |
Cool, forward progress. I'm not too hip with Windows, but can you try running the 2 commands listed here under "Windows users may need to run"? https://github.com/libertysoft3/reddit-html-archiver/blob/master/README.md#install |
Running the commands with cmd under admin still has the issue; E:\Myfolder\reddittohtml>chcp 65001 E:\Myfolder\reddittohtml>set PYTHONIOENCODING=utf-8 E:\Myfolder\reddittohtml>write_html.py |
Here's the error under win10 having just installed latest python and snudown, my data folder is about a gig and a half. I assumed min score/comments and deleted are all set to something by default.
E:\Myfolder\reddittohtml>write_html.py
Traceback (most recent call last):
File "E:\Myfolder\reddittohtml\write_html.py", line 774, in
generate_html(args.min_score, args.min_comments, hide_deleted_comments)
File "E:\Myfolder\reddittohtml\write_html.py", line 114, in generate_html
raw_links = load_links(d, sub, True)
File "E:\Myfolder\reddittohtml\write_html.py", line 625, in load_links
comments_file_path = daily_path + '/' + link_row['id'] + '.csv'
KeyError: 'id'
Here's when I do try it with min and max etc set;
E:\Myfolder\reddittohtml>write_html.py --min-score -4 --min-comments 2 --hide-deleted-comments
Traceback (most recent call last):
File "E:\Myfolder\reddittohtml\write_html.py", line 774, in
generate_html(args.min_score, args.min_comments, hide_deleted_comments)
File "E:\Myfolder\reddittohtml\write_html.py", line 114, in generate_html
raw_links = load_links(d, sub, True)
File "E:\Myfolder\reddittohtml\write_html.py", line 625, in load_links
comments_file_path = daily_path + '/' + link_row['id'] + '.csv'
KeyError: 'id'
The text was updated successfully, but these errors were encountered: