billboard-charts icon indicating copy to clipboard operation
billboard-charts copied to clipboard

Produces a 67 second delay every 24 requests.

Open fluxtransistor opened this issue 4 years ago • 2 comments

I'm pulling every hot 100 chart into JSON format. I have set the scraper to have a timeout of 4 seconds and a max-retries of 1, but somehow it still produces a 67 second delay once every 24 requests. This adds a significant amount of time to my aggregator's runtime.

fluxtransistor avatar Feb 13 '21 08:02 fluxtransistor

So I have determined that it's not exactly 24 requests, but it varies thereabouts. Interestingly, the delay time is always 67 seconds.

fluxtransistor avatar Feb 17 '21 14:02 fluxtransistor

Thanks for reporting. Haven't had time to look into this, but the delay probably comes from Billboard (they send a Retry-After header, which this library respects), in which case, there's nothing to be done here.

guoguo12 avatar Feb 24 '21 02:02 guoguo12