node-osmosis icon indicating copy to clipboard operation
node-osmosis copied to clipboard

Throttling pagination

Open JonnyBGod opened this issue 9 years ago • 3 comments

I am trying to crawl / scrape a list using pagination. Problem is that I get a "too many request" error after a few seconds.

How can we throttle paginations?

Placing a delay after paginate is not helping, the pagination keeps going and just delays the set command.

JonnyBGod avatar Jun 22 '16 19:06 JonnyBGod

I made a quick and dirty change to the pagination method in my fork, just to get this working.

paginate(selector, limit, sleep)

I haven't done extensive testing, but it works well for my application.

https://github.com/simonwjackson/node-osmosis/commit/b279d9e6317f4e31edd0eaaa8c914db067cb9302

simonwjackson avatar Jun 25 '17 15:06 simonwjackson

Was this ever fixed in the original code?

hjalmarsn avatar Feb 28 '18 15:02 hjalmarsn

Any update here ?

akarabach avatar Feb 23 '19 22:02 akarabach