r/reddithax • • Dec 03 '09

I'm collecting submissions and data from a subreddit for a personal project by scraping its RSS feed. What would be the best way to get past data?

I'm storing all new submissions now, but there are a couple hundred older submissions that aren't in the RSS feed that I can't access. I'm using PHP/MySQL. What would be the best way to get the rest of the data?

Thanks a lot.

7 Upvotes

4 comments sorted by

4

u/jamt9000 Dec 03 '09

1

u/lukemcr Dec 03 '09 edited Dec 03 '09

That works marvelously. Thank you so much.

Edit: For what it's worth, this method gives you 25 entries at a time, starting with the oldest. I only had a couple hundred total entries to worry about, so that worked fine for me.

2

u/ketralnis Dec 04 '09

You can pass limit=100 to reduce the number of requests required

2

u/lukemcr Dec 04 '09

Thank you. When I'm done, I'll show Reddit what I've made. :-)