def massCrawl(seedFile, path):

    #connect to Google
    connector = pyGTrends(google_username, google_password)
    time.sleep(randint(200,600))
    print("connected to google!")
    print("opening seed file..")
    with open(seedFile) as f:
        reader = csv.reader(f)
        for row in reader:
            if row:
                crawl(connector,row[0], path)
示例#2
0
def massCrawl(seedFile, path):

    #connect to Google
    connector = pyGTrends(google_username, google_password)
    time.sleep(randint(200, 600))
    print("connected to google!")
    print("opening seed file..")
    with open(seedFile) as f:
        reader = csv.reader(f)
        for row in reader:
            if row:
                crawl(connector, row[0], path)
def crawlOneTime(keyword):
    connector = pyGTrends(google_username, google_password)
    print("connected to google!")
    crawl(connector,keyword,path)
示例#4
0
def crawlOneTime(keyword):
    connector = pyGTrends(google_username, google_password)
    print("connected to google!")
    crawl(connector, keyword, path)