我正在尝试使用pytrends库运行一个脚本来获取Google趋势
import pytrends
kw_list = ["covid"]
pytrends.build_payload(kw_list, cat=0, timeframe='2021-02-01 2021-07-09', geo='BR', gprop='')
gt_o3_ytd1 = pytrends.interest_over_time()
我收到以下错误消息:
AttributeError Traceback (most recent call last)
<ipython-input-4-e6a3a9855c66> in <module>
2
3 kw_list = ["covid"]
----> 4 pytrends.build_payload(kw_list, cat=0, timeframe='2021-02-01 2021-07-09', geo='BR', gprop='')
5 gt_o3_ytd1 = pytrends.interest_over_time()
AttributeError: module 'pytrends' has no attribute 'build_payload'
试一试
相关问题 更多 >
编程相关推荐