我从网站下载网页列表时写了一个脚本。 我经常收到以下错误( 秒数是变量) :
The bwshare module will refuse your requests for the next 7 seconds. You have downloaded data too rapidly.
I found when using sleep(2) in the loop, it works much better, however the time delay is too expensive. What s the best way how to deal with this module? Should I scrape it without any delay and if the response will be similar to the above message simply use sleep for the requested number of seconds?