You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an error while trying to scrap Linkedn. it is able to get the list of companies but when trying to get the employees, it fail at some point. I tried this on a basic Ubuntu with python3.
Thanks for the script anyway :)
Here is the command : python3 socialpwned.py --credentials creds.json --output out.txt --linkedin --search-companies "MyCompany" --employees --pwndb
And here is the output :
Traceback (most recent call last):
File "socialpwned.py", line 51, in <module>
run(args)
File "SocialPwned/core/main.py", line 214, in run
results.extend(linkedinParameters(args,in_email,in_password))
File "SocialPwned/core/main.py", line 109, in linkedinParameters
users = linkedin.getCompanyEmployees(api,companies)
File "SocialPwned/core/linkedin.py", line 46, in getCompanyEmployees
employees = searchUsersOfCompany(api,nameCompany)
File "SocialPwned/core/linkedin.py", line 84, in searchUsersOfCompany
employees = api.search_people(keywords=nameCompany)
File "SocialPwned/lib/LinkedInAPI/linkedin.py", line 177, in search_people
data = self.search(params, limit=limit)
File "SocialPwned/lib/LinkedInAPI/linkedin.py", line 107, in search
for i in range(len(data["data"]["elements"])):
KeyError: 'data'
The text was updated successfully, but these errors were encountered:
The changes you've made didn't worked for me but I noticed they were dashes and parenthesis in the name it failed on.
So I followed your lead with the replace strategy and its now working when I replace parenthesis in search_people() the same way you did with comas. Dashes seems not to be a problem.
I can now close the issue.
Thanks a lot for your fast answer and for the tool !
Hello,
I have an error while trying to scrap Linkedn. it is able to get the list of companies but when trying to get the employees, it fail at some point. I tried this on a basic Ubuntu with python3.
Thanks for the script anyway :)
Here is the command :
python3 socialpwned.py --credentials creds.json --output out.txt --linkedin --search-companies "MyCompany" --employees --pwndb
And here is the output :
The text was updated successfully, but these errors were encountered: