我希望能够创建尽可能多的async
函数,并使用requests-html
库一次性运行它们
from requests_html import AsyncHTMLSession
asession = AsyncHTMLSession()
number=5
for i in range(1,number):
async def get_pythonorg():
r = await asession.get('site/{}'.format(i))
return r
results = asession.run(call All the above created functions called by a loop)
目前没有回答
相关问题 更多 >
编程相关推荐