只抓一次 验证码也无法输入呃
async def get_url(url):
session = aiohttp.ClientSession()
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
'Accept-Language': 'en-US,en;q=0.9',
# 添加其他需要的头部字段
}
response = await session.get(url,headers=headers)
result = await response.text()
这样抓亚马逊要验证码,我只是需要静态页面?如何防止