Advertisement
skip420

linkedin

Dec 27th, 2020
1,324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. #add_this_to_DeadTrapv2_directory
  2. ##add_to_osint_directory
  3. #linkedin.py
  4.  
  5. import requests
  6. from bs4 import BeautifulSoup
  7.  
  8. def linkedin(area, ctr = 0):
  9.     while ctr < 150:
  10.         query = 'https://google.com/search?q=site:linkedin.com/in+AND+"{}"&start='.format(area) +str(ctr)
  11.         profile_urls = []
  12.         response = requests.get(query)
  13.         soup = BeautifulSoup(response.text,'html.parser')
  14.         for anchor in soup.find_all('a'):
  15.             url = anchor["href"]
  16.             if 'https://www.linkedin.com/' in url:
  17.                 url = url[7:url.find('&')]
  18.                 profile_urls.append([url])
  19.                 print("[+] Possible linkedin accounts based on geolocations :", url)
  20.         ctr += 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement