Skip to content

Instantly share code, notes, and snippets.

@voker2311
Last active June 9, 2022 09:33
Show Gist options
  • Save voker2311/c8ff452fa6631f8aa6e629a33a4aa974 to your computer and use it in GitHub Desktop.
Save voker2311/c8ff452fa6631f8aa6e629a33a4aa974 to your computer and use it in GitHub Desktop.
Scrape Linkedin to get corporate employee emails
#!/bin/bash
for i in `seq 1 50 1000`;do
curl -H 'Cookie: <Cookie Value>' -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" -H "Csrf-Token: ajax:7080997129483592561" -H "X-Restli-Protocol-Version: 2.0.0" -s "https://www.linkedin.com/voyager/api/search/dash/clusters?decorationId=com.linkedin.voyager.dash.deco.search.SearchClusterCollection-154&origin=SWITCH_SEARCH_VERTICAL&q=all&query=(keywords:trigyn%20technologies,flagshipSearchIntent:SEARCH_SRP,queryParameters:(resultType:List(PEOPLE)),includeFiltersInResponse:false)&start=$i&count=50" | jq -r .elements[].results[].title.text >> employees.txt
sleep 3;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment