Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ from datetime import datetime, timedelta
|
|
6 |
|
7 |
API_KEY = os.getenv("SERPHOUSE_API_KEY")
|
8 |
|
9 |
-
# COUNTRY_CODES를 다음과 같이 loc_id로 변경
|
10 |
COUNTRY_LOCATIONS = {
|
11 |
"United States": "1026201", # Alba,Texas,United States
|
12 |
"United Kingdom": "2635167", # Birmingham,England,United Kingdom
|
@@ -28,6 +27,8 @@ COUNTRY_LOCATIONS = {
|
|
28 |
"Hong Kong": "1819729" # Hong Kong,Central and Western District,Hong Kong
|
29 |
}
|
30 |
|
|
|
|
|
31 |
def search_serphouse(query, country, page=1, num_result=100):
|
32 |
url = "https://api.serphouse.com/serp/live"
|
33 |
|
|
|
6 |
|
7 |
API_KEY = os.getenv("SERPHOUSE_API_KEY")
|
8 |
|
|
|
9 |
COUNTRY_LOCATIONS = {
|
10 |
"United States": "1026201", # Alba,Texas,United States
|
11 |
"United Kingdom": "2635167", # Birmingham,England,United Kingdom
|
|
|
27 |
"Hong Kong": "1819729" # Hong Kong,Central and Western District,Hong Kong
|
28 |
}
|
29 |
|
30 |
+
MAJOR_COUNTRIES = list(COUNTRY_LOCATIONS.keys())
|
31 |
+
|
32 |
def search_serphouse(query, country, page=1, num_result=100):
|
33 |
url = "https://api.serphouse.com/serp/live"
|
34 |
|