(foolish) C:\Users\18115\oddish-master>python -m src
Traceback (most recent call last):
File "C:\Users\18115\oddish-master\src\ui\oddish.py", line 28, in run
table = item_crawler.crawl()
File "C:\Users\18115\oddish-master\src\crawl\item_crawler.py", line 167, in crawl
t = asyncio.run(crawl_goods_by_price_section(category))
File "C:\Users\18115\anaconda3\envs\foolish\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\18115\anaconda3\envs\foolish\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\18115\oddish-master\src\crawl\item_crawler.py", line 149, in crawl_goods_by_price_section
await timer.async_sleep_awhile(0, time.time() - stamp)
TypeError: async_sleep_awhile() takes 0 positional arguments but 2 were given
问题描述 在爬饰品的时候,会闪退
复现步骤
报错信息
(foolish) C:\Users\18115\oddish-master>python -m src Traceback (most recent call last): File "C:\Users\18115\oddish-master\src\ui\oddish.py", line 28, in run table = item_crawler.crawl() File "C:\Users\18115\oddish-master\src\crawl\item_crawler.py", line 167, in crawl t = asyncio.run(crawl_goods_by_price_section(category)) File "C:\Users\18115\anaconda3\envs\foolish\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\18115\anaconda3\envs\foolish\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:\Users\18115\oddish-master\src\crawl\item_crawler.py", line 149, in crawl_goods_by_price_section await timer.async_sleep_awhile(0, time.time() - stamp) TypeError: async_sleep_awhile() takes 0 positional arguments but 2 were given
[相关截屏(最好贴一下)]
软件信息
请完善以下信息: