<reponame>mattoc/pytrends
from pytrends.pyGTrends import pyGTrends
import time
from random import randint

google_username = "<EMAIL>"
google_password = "password"
path = ""

# connect to Google
connector = pyGTrends(google_username, google_password)

# make request
connector.request_report("Pizza")

# wait a random amount of time between requests to avoid bot detection
time.sleep(randint(5, 10))

# download file
connector.save_csv(path, "pizza")

# get suggestions for keywords
keyword = "milk substitute"
data = connector.get_suggestions(keyword)
print(data)

from pytrends.pyGTrends import pyGTrends
import time
from random import randint

google_username = "<EMAIL>"
google_password = "password"
path = ""

# connect to Google
connector = pyGTrends(google_username, google_password)

# make request
connector.request_report("Pizza")

# wait a random amount of time between requests to avoid bot detection
time.sleep(randint(5, 10))

# download file
connector.save_csv(path, "pizza")

# get suggestions for keywords
keyword = "milk substitute"
data = connector.get_suggestions(keyword)
print(data)
# connect to Google # make request # wait a random amount of time between requests to avoid bot detection # download file # get suggestions for keywords