Code: Select all
the request failed: google returned a response with code 404
< /code>
Warum führt dieser Code zu einer Seite, die nicht vorhanden ist?import pytrends
from pytrends.request import TrendReq
pytrends = TrendReq(hl='en-US', tz=360)
countries = ['united_states', 'kuwait', 'qatar']
def trending_searches(country):
data = pytrends.trending_searches(pn=country)
print(data)
country = 'kuwait'
trending_searches(country)
for country in countries:
print(f'trend searches for: {country}')
trending_searches(country)