Skip to content

Add network_info #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions iscraper/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _parse_id(self, url: str):
parsed = urlparse(url)
return str(parsed.path.rstrip('/').split('/')[-1]).strip()

def profile_details(self, url: str, profile_type: str = 'personal', contact_info: bool = False, recommendations: bool = False, related_profiles: bool = False):
def profile_details(self, url: str, profile_type: str = 'personal', contact_info: bool = False, recommendations: bool = False, related_profiles: bool = False, network_info: bool = False):
"""Get details for personal and company LinkedIn profiles.

Args:
Expand All @@ -80,6 +80,7 @@ def profile_details(self, url: str, profile_type: str = 'personal', contact_info
contact_info (bool, optional): Either to fetch the available contact info for a user or not.
recommendations (bool, optional): Either to fetch the available recommendations or not.
related_profiles (bool, optional): Either to get the available related profiles or not.
network_info (bool, optional): Either to get the number of followers and connections or not.


Returns:
Expand All @@ -92,7 +93,8 @@ def profile_details(self, url: str, profile_type: str = 'personal', contact_info
'profile_type': profile_type,
'contact_info': contact_info,
'recommendations': recommendations,
'related_profiles': related_profiles
'related_profiles': related_profiles,
'network_info': network_info
}
return self._send_request(path=path, data=data)

Expand Down