Weather Undground API call limit per minute
问题 I have to limit my API request to 10 calls per minute, how can I modify the for loops to accomplish this? I am trying to add in time.sleep(8) in the for observation loop without any luck... Any ideas? import arrow # learn more: https://python.org/pypi/arrow from WunderWeather import weather # learn more: https://python.org/pypi/WunderWeather import time api_key = '' extractor = weather.Extract(api_key) zip = '53711' # get 20170101 00:00 begin_date = arrow.get("2017","YYYY") # get 20171231 23