Open samschr opened 6 years ago
Is this patch python3 compatible? I keep getting an error: UnboundLocalError: local variable 'createdreadable' referenced before assignment
can you post complete eror @goose-ws ?
The problem was that I had createdreadable = datetime.datetime.fromtimestamp(int(created)).strftime('%Y-%m-%d %H:%M:%S')
indented one too many times.
I wasn't able to get this to work. When I run python export_saved.py
after making the changes, the process just hangs in my bash until I keyboard interrupt.
I added a quick bash script in #52 that will parse this info out of the resultant HTML file after the python script completes, in case anyone else wants a more comprehensive backup and doesn't mind a less elegant solution/somewhat sloppily formatted data
I wasn't able to get this to work. When I run
python export_saved.py
after making the changes, the process just hangs in my bash until I keyboard interrupt.
With those changes made by samschr, it just takes a lot longer to extract the data. If you set the logging level to INFO, you'll see that the program is churning out the data sets.
The current version only saves link URLs and their titles, but saved comments are lost. However, I was able to dive into the code and fix it for my use. Here are the changes I made in order to also grab author, submission body, and a more readable time. I'm not sure if this is the right place to put this as I'm pretty new to github and coding in general, but the git diff is below: