This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from serpapi import GoogleSearch | |
import csv | |
params = { | |
"api_key": "YOUR_API_KEY", | |
"engine": "google_maps", | |
"type": "search", | |
"google_domain": "google.com", | |
"q": "кофе мариуполь", # query | |
"ll": "@47.0919234,37.5093148,12z" # @ + latitude + , + longitude + , + zoom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Timer | |
from functools import partial | |
class Interval(object): | |
def __init__(self, interval, function, args=[], kwargs={}): | |
""" | |
Runs the function at a specified interval with given arguments. | |
""" | |
self.interval = interval |