rblstr / flock

Subreddit YouTube playlister
flock.rblstr.com
3 stars 1 forks source link

Add rate limiting to external HTTP requests #25

Closed rblstr closed 10 years ago

rblstr commented 10 years ago

Some third party services such as Reddit require rate limiting of some amount of seconds before any subsequent requests are made.

This can be achieved by wrapping all calls with a rateLimitedRequest() function which sleeps the required number of seconds before making another request (if required)

TODO: