keyan/t1.py

15 lines
339 B
Python
Raw Normal View History

2024-06-17 14:04:28 +08:00
from serpapi import GoogleSearch
# GoogleSearch
params = {
"q": "Coffee",
"location": "Austin, Texas, United States",
"hl": "en",
"gl": "us",
"google_domain": "google.com",
"api_key": "681ac1d6fe9958124d39f25ea5afd759b63f45e52cac7e85629655024661166e"
}
search = GoogleSearch(params)
results = search.get_dict()
print(results)