Quivara commited on
Commit
387a925
·
verified ·
1 Parent(s): 1ae0901

Update alisto_project/backend/ingest_reddit.py

Browse files
alisto_project/backend/ingest_reddit.py CHANGED
@@ -390,7 +390,12 @@ def is_credible_user(post):
390
  # orchestrates the entire scraping process (historical scan + real-time stream)
391
  async def scrape_reddit():
392
  print("Connecting to Reddit API...")
393
-
 
 
 
 
 
394
  if not client_id or not client_secret:
395
  print("❌ Error: Client ID or Secret missing in .env")
396
  return
 
390
  # orchestrates the entire scraping process (historical scan + real-time stream)
391
  async def scrape_reddit():
392
  print("Connecting to Reddit API...")
393
+
394
+ # --- MISSING LINES ADDED HERE ---
395
+ client_id = os.getenv("REDDIT_CLIENT_ID")
396
+ client_secret = os.getenv("REDDIT_CLIENT_SECRET")
397
+ # --------------------------------
398
+
399
  if not client_id or not client_secret:
400
  print("❌ Error: Client ID or Secret missing in .env")
401
  return