This script shows the most popular search terms for specific languages, regions and years. They are arranged chronologically based on the month of highest relative popularity.
--year | Year to display top trends. |
--language | Language of the search terms. For example 'en' or 'de'. |
--region | Country and state/province. For example 'US-AL' for Alabama. The state/province are not mandatory. |
- pytrends is used to get the information
- matplotlib is used to generate the plot
- PyQT5 is sometimes required to run on Windows machines
Let's display the most popular german search terms in Switzerland for the year 2020:
python toptrends.py --year 2020 --language de --region CH