Skip to content

armgit / Scout

Public Imported from GitHub
0

Free lead generation tool. Scrape Instagram, Twitch, TikTok, and LinkedIn profiles. Extract emails from bios, verify via SMTP, export to CSV.

Merge pull request #6 from JamshaidAhmedd/fix-linkedin-null-websites

Jamshaid Ahmeda9e6fc4a7034
diff --git a/app/scrapers/linkedin.py b/app/scrapers/linkedin.py
index 08b907e..7dc8c9c 100644
--- a/app/scrapers/linkedin.py
+++ b/app/scrapers/linkedin.py
@@ -135,7 +135,7 @@ def scrape_linkedin_profile(username: str) -> Optional[Dict]:
summary = multi.get('en_US', '') if isinstance(multi, dict) else ''
websites = []
- for w in profile_data.get('websites', []):
+ for w in profile_data.get('websites') or []:
if isinstance(w, dict) and w.get('url'):
websites.append(w['url'])