Python Pytrends-请求失败:Google返回了代码为429的响应

问题描述

我正在尝试使用Pytrends从Google趋势中收集大量数据,但是一直在获取429 error。如何避免这种情况?购买代理会有所帮助吗? 我尝试了在线提供的免费代理,但不断出现以下错误:

ProxyError: HTTPSConnectionPool(host='trends.google.com',port=443): Max retries exceeded with url: /?geo=US (Caused by ProxyError('Cannot connect to proxy.',timeout('timed out')))

这是我尝试的代码:

from pytrends.dailydata import  get_daily_data
get_daily_data("AAPL",2017,1,5,proxies=["http://35.169.156.54:3128"])

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...