Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import os
|
|
| 5 |
from datetime import datetime, timedelta
|
| 6 |
|
| 7 |
API_KEY = os.getenv("SERPHOUSE_API_KEY")
|
| 8 |
-
|
| 9 |
|
| 10 |
|
| 11 |
COUNTRY_LOCATIONS = {
|
|
@@ -30,6 +30,8 @@ COUNTRY_LOCATIONS = {
|
|
| 30 |
}
|
| 31 |
|
| 32 |
|
|
|
|
|
|
|
| 33 |
|
| 34 |
def search_serphouse(query, country, page=1, num_result=10):
|
| 35 |
url = "https://api.serphouse.com/serp/live"
|
|
|
|
| 5 |
from datetime import datetime, timedelta
|
| 6 |
|
| 7 |
API_KEY = os.getenv("SERPHOUSE_API_KEY")
|
| 8 |
+
|
| 9 |
|
| 10 |
|
| 11 |
COUNTRY_LOCATIONS = {
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
|
| 33 |
+
MAJOR_COUNTRIES = list(COUNTRY_LOCATIONS.keys())
|
| 34 |
+
|
| 35 |
|
| 36 |
def search_serphouse(query, country, page=1, num_result=10):
|
| 37 |
url = "https://api.serphouse.com/serp/live"
|