I found this code and I'm trying to figure out how to get the related topics ordered by "Rising". Right now it looks like it's only available the Top numbers.
from pytrends.request import TrendReq
# Login to Google. Only need to run this once, the rest of requests will use the same session.
pytrend = TrendReq()
# Create payload and capture API tokens. Only needed for interest_over_time(), interest_by_region() & related_queries()
pytrend.build_payload(kw_list=['bitcoin'], timeframe='now 4-H', geo='GB', gprop='')
related_topics_dict = pytrend.related_topics()
print(related_topics_dict)
I think it will print a dictionary with both rising terms and top terms. This is my output using your code:
{'bitcoin': {'rising': ...... , 'top': ......}
Hi,
I found this code and I'm trying to figure out how to get the related topics ordered by "Rising". Right now it looks like it's only available the Top numbers.
And here's my code:
How can I see the rising only?
Thanks