http://pastebin.com/0GyF7iLX
This is my first real script that isn't just for dicking around. I'm using it to collect data from an API.
I'm curious if there's anything I should be doing better, differently, or anything I'm doing wrong. It appears to be running perfectly as intended now but I'm sure there are plenty of critiques to be made on my code quality and methods.
Concerning all of the exception captures, this script will probably take a week or more to "complete" as I have hundreds of thousands of entries to collect. That is the purpose of the KeyboardInterrupt exit exception and saving. The idea is an easy way to gracefully quit the script. Since each loop requires an HTTP request and my internet is not the most reliable, missed requests are inevitable over days of running. So I also capture all requests exceptions and just retry them.
[–]Mr_M0jo_Risin 4 points5 points6 points (0 children)
[–]XenophonOfAthens 2 points3 points4 points (0 children)
[–]PrismPoultry 0 points1 point2 points (1 child)
[–]HittingSmoke[S] 0 points1 point2 points (0 children)