How to limit rate of requests to web services in Python?

后端 未结 6 1903
醉梦人生
醉梦人生 2020-12-30 06:13

I\'m working on a Python library that interfaces with a web service API. Like many web services I\'ve encountered, this one requests limiting the rate of requests. I would l

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 06:19

    SO I am assuming something simple like import time time.sleep(2) will not work for waiting 2 seconds between requests

提交回复
热议问题