pytrends: suggestions() example
Syntax
pytrends.suggestions("keyword")
suggestions() example
from pytrends.request import TrendReq
# Keywords
kw = "python list"
# pytrends
pytrends = TrendReq()
# suggestions
suggestions = pytrends.suggestions(kw)
# Print
print(suggestions)
Output:
[{'mid': '/g/12bmxbj3c', 'title': 'Quantitative Trading: How to Build Your Own Algorithmic Trading Business', 'type': 'Topic'}, {'mid': '/g/11csqywqcb', 'title': 'Introduction to Programming Using Python', 'type': 'Topic'}, {'mid': '/m/05z1_', 'title': 'Python', 'type': 'Programming language'}, {'mid': '/g/12bmhch5w', 'title': 'The Spirit Of C', 'type': 'Topic'}, {'mid': '/m/0m5qz', 'title': 'Reticulated python', 'type': 'Snake'}]