我正在使用Python请求模块获取谷歌搜索结果页面,当我在自己的PC上运行它时,它会得到很好的结果,但当我在AWS Windows VM实例中运行它时,它会得到Google Cookie登录页面,我如何绕过它,获得直接的结果页面?
import requests
result = requests.get("https://www.google.com/search?q=usd+in+myr").text
print(result)
奇怪的是,在我自己的PC上,当我在Chrome浏览器匿名模式下打开页面时,我希望看到Cookie页面,但我没有,同时在AWS Windows VM中,它确实显示了Cookie登录页面.