Closed aggrolite closed 11 years ago
Ya, that '1000' was kind of pointless. Thanks for the heads up on Getopt/Long. I agree that traversing the after=... would be the best option but I never got around to doing it. I'll see about doing it here soon but I'm currently in school so it may sit on the back burner for a while.
@joshua-hull no worries, I was hacking on some code today during my break and should be able to give you a pull request for review within the next few days.
Hey Joshua,
I've been thinking about your script the past few days and wanted to raise an issue with our current calls to the JSON:
Problem:
Reddit's JSON restricts the limit parameter to a value <=100. This means that our current value of 1,000 is pointless and if you make this change to the code on line 40:
You will notice that the amount of posts we get never exceeds 100. For example, try running the script on r/pics. You might get more than 100 pictures downloaded because some of those links are albums, but it will be no where near 1,000 because we are only getting the first 100 posts
Solution:
what do you think?
see http://www.reddit.com/dev/api for details on their API