This is the official SDK to consume iScraper LinkedIn public data APIs. Don't have an API key yet? Visit https://iscraper.io to get an API key now.
Install from PyPi:
pip3 install -U iscraper-python
Or install from source:
git clone https://github.com/iscraper-project/iscraper-python.git && \
cd iscraper-python && \
python3 setup.py install
You need your API key to consume our APIs. Create the client first by providing your API key. Don't have an API key yet? Get it here
from iscraper.client import Client
client = Client('your-api-key')
Personal profile details:
url = 'https://linkedin.com/in/williamhgates'
details = client.profile_details(url, profile_type='personal', recommendations=True, related_profiles=False)
Company profile details:
url = 'https://linkedin.com/company/microsoft'
details = client.profile_details(url, profile_type='company')
url = 'https://linkedin.com/company/microsoft'
employees = client.company_employees(url = url, per_page = 50, offset = 0)
Find companies:
params = {
'keyword': 'data science',
'location': 'United States',
'size': '11-50',
'search_type': 'companies'
}
results = client.search_results(**params)
Find personal profiles:
params = {
'keyword': 'data science',
'search_type': 'people'
}
results = client.search_results(**params)
Get supported locations list to use with search.
locations = client.get_locations()
For support related to this SDK, use the issues section. For sales related enquiries, send an email at sales@iscraper.io.