poemsforaphrodite commited on
Commit
8dc0c9a
1 Parent(s): c6b94ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -96,9 +96,7 @@ def init_session_state():
96
  # -------------
97
 
98
  def get_serp_results(query):
99
- logger.info(f"Getting SERP results for query: {query}")
100
  if not APIFY_API_TOKEN:
101
- logger.error("Apify API token is not set. Unable to fetch SERP results.")
102
  st.error("Apify API token is not set. Unable to fetch SERP results.")
103
  return []
104
 
@@ -351,7 +349,7 @@ def list_gsc_properties(credentials):
351
  service = build('webmasters', 'v3', credentials=credentials)
352
  site_list = service.sites().list().execute()
353
  properties = [site['siteUrl'] for site in site_list.get('siteEntry', [])] or ["No properties found"]
354
- logging.info(f"GSC properties listed: {properties}")
355
  return properties
356
 
357
  def fetch_gsc_data(webproperty, search_type, start_date, end_date, dimensions, device_type=None):
 
96
  # -------------
97
 
98
  def get_serp_results(query):
 
99
  if not APIFY_API_TOKEN:
 
100
  st.error("Apify API token is not set. Unable to fetch SERP results.")
101
  return []
102
 
 
349
  service = build('webmasters', 'v3', credentials=credentials)
350
  site_list = service.sites().list().execute()
351
  properties = [site['siteUrl'] for site in site_list.get('siteEntry', [])] or ["No properties found"]
352
+ #logging.info(f"GSC properties listed: {properties}")
353
  return properties
354
 
355
  def fetch_gsc_data(webproperty, search_type, start_date, end_date, dimensions, device_type=None):