Using Python, I am attempting to scrape data from Google Trends for "topics" (as opposed to "search terms").
I am currently using the pytrends
module, but it appears it's not (currently) possible to scrape topics rather than search terms, unless you know the topic_id
.
E.g. if you wanted to scrape the data for the topic_name
"Holiday", you could search using the topic_id
/m/03gkl
, but only if you knew that that was the topic_id
.
I have a list of topic names. I would like a corresponding list of topic ids. How can I achieve this?