1.设置headers
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) "
"AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/81.0.4044.138 Safari/537.36"}
2.对爬取函数使用async修饰
async def job(url,Year,Month,Day,Hour):
async with aiohttp.ClientSession()