我打算使用pytrend接收有关“大数据工具” bt的建议。我的脚本在下面,输出与主题无关。你有什么主意吗?
from pytrends.request import TrendReq
pytrend = TrendReq(hl='en-US', tz=360)
kw_list = ["Big data tools","big data platforms"]
_cat = 0
_geo = ''
_gprop = ''
_timeframe = 'all'
pytrend.build_payload(kw_list, cat=_cat, timeframe=_timeframe, geo=_geo, gprop=_gprop)
suggestions_dict = pytrend.suggestions(keyword='Big Data Tools')
suggestions_dict
输出:
[{'mid': '/m/012d40', 'title': 'Jackie Chan', 'type': 'Martial artist'},
{'mid': '/m/04v7kt', 'title': 'Idris Elba', 'type': 'Actor'},
{'mid': '/m/03sc8', 'title': 'IBM', 'type': 'Computer hardware company'},
{'mid': '/m/0tj9', 'title': 'Amitabh Bachchan', 'type': 'Indian film actor'},
{'mid': '/m/01vz0g4',
'title': 'The Notorious B.I.G.',
'type': 'American rapper'}]