我正在使用Pytrends来提取Google趋势数据,例如:
from pytrends.request import TrendReq
pytrend = TrendReq()
pytrend.build_payload(kw_list=['bitcoin'], cat=0, timeframe=from_date+' '+today_date)
Run Code Online (Sandbox Code Playgroud)
它返回一个错误:
ResponseError: The request failed: Google returned a response with code 429.
Run Code Online (Sandbox Code Playgroud)
我昨天做了,由于某种原因它现在不起作用!来自github的源代码也失败了:
pytrends = TrendReq(hl='en-US', tz=360, proxies = {'https': 'https://34.203.233.13:80'})
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?非常感谢!