问题描述
我正在尝试使用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 (将#修改为@)