Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from apify_client import ApifyClient
|
|
| 7 |
def fetch_google_maps_info(website_name):
|
| 8 |
apify_client = ApifyClient("apify_api_uz0y556N4IG2aLcESj67kmnGSUpHF12XAkLp")
|
| 9 |
run_input = {"searchStringsArray": [website_name]}
|
| 10 |
-
run = apify_client.actor("
|
| 11 |
items = list(apify_client.dataset(run["defaultDatasetId"]).iterate_items())
|
| 12 |
return items[0] if items else None
|
| 13 |
|
|
@@ -22,7 +22,7 @@ def fetch_weather_info(lat, lon):
|
|
| 22 |
def fetch_website_content(website_url):
|
| 23 |
apify_client = ApifyClient("apify_api_uz0y556N4IG2aLcESj67kmnGSUpHF12XAkLp")
|
| 24 |
run_input = {}
|
| 25 |
-
run = apify_client.actor("
|
| 26 |
items = list(apify_client.dataset(run["defaultDatasetId"]).iterate_items())
|
| 27 |
return items if items else None
|
| 28 |
|
|
|
|
| 7 |
def fetch_google_maps_info(website_name):
|
| 8 |
apify_client = ApifyClient("apify_api_uz0y556N4IG2aLcESj67kmnGSUpHF12XAkLp")
|
| 9 |
run_input = {"searchStringsArray": [website_name]}
|
| 10 |
+
run = apify_client.actor("nwua9Gu5YrADL7ZDj").call(run_input=run_input)
|
| 11 |
items = list(apify_client.dataset(run["defaultDatasetId"]).iterate_items())
|
| 12 |
return items[0] if items else None
|
| 13 |
|
|
|
|
| 22 |
def fetch_website_content(website_url):
|
| 23 |
apify_client = ApifyClient("apify_api_uz0y556N4IG2aLcESj67kmnGSUpHF12XAkLp")
|
| 24 |
run_input = {}
|
| 25 |
+
run = apify_client.actor("moJRLRc85AitArpNN").call(run_input=run_input)
|
| 26 |
items = list(apify_client.dataset(run["defaultDatasetId"]).iterate_items())
|
| 27 |
return items if items else None
|
| 28 |
|