RuntimeWarning: Enable tracemalloc to get the object allocation traceback with asyncio.sleep
- 阅读更多 关于 RuntimeWarning: Enable tracemalloc to get the object allocation traceback with asyncio.sleep
问题 Trying to use a semaphore to control asynchronous requests to control the requests to my target host but I am getting the following error which I have assume means that my asycio.sleep() is not actually sleeping. How can I fix this? I want to add a delay to my requests for each URL targeted. Error: RuntimeWarning: coroutine 'sleep' was never awaited Coroutine created at (most recent call last) File "sephora_scraper.py", line 71, in <module> loop.run_until_complete(main()) File "/Library