Great Video. Congratulations! Do you know how to include country by city like you make with keywords? For example "for keywords in all_keywords I make for each city too". I tried, but the result its wrong or equal a first item in my list. Thaks.
@Pythonenthusiast3 жыл бұрын
Hey there! If you want to get the popularity of a keyword per city, you can do that by using interest_by_region method and providing resolution = 'City'. If you want to drill down, you can in the following order: 1. geo = US #Get data for the US 2. geo = US-AL #Get data for the US - Alabama 3. geo = US-AL-630 #Get data for the US - Alabama -Birmingham metro area My suggestion would be: 1. Define clearly what it is that you want to achieve. 2. Start with the Google trends website and notice how your URL changes based on the selection. 3. Write the Python code in a way that it can be re-used. For some countries, it is possible to drill down to the city level, but that is not applicable for all as the data is limited. Hope this helps!