linkedin-api 2.2.0__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {linkedin_api-2.2.0/linkedin_api.egg-info → linkedin_api-2.3.0}/PKG-INFO +132 -53
- linkedin_api-2.2.0/PKG-INFO → linkedin_api-2.3.0/README.md +113 -59
- linkedin_api-2.3.0/linkedin_api/__init__.py +7 -0
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/linkedin_api/linkedin.py +161 -10
- linkedin_api-2.3.0/pyproject.toml +33 -0
- linkedin_api-2.2.0/README.md +0 -307
- linkedin_api-2.2.0/linkedin_api/__init__.py +0 -17
- linkedin_api-2.2.0/linkedin_api.egg-info/SOURCES.txt +0 -19
- linkedin_api-2.2.0/linkedin_api.egg-info/dependency_links.txt +0 -1
- linkedin_api-2.2.0/linkedin_api.egg-info/requires.txt +0 -3
- linkedin_api-2.2.0/linkedin_api.egg-info/top_level.txt +0 -1
- linkedin_api-2.2.0/setup.cfg +0 -4
- linkedin_api-2.2.0/setup.py +0 -41
- linkedin_api-2.2.0/tests/test_cookie_repository.py +0 -53
- linkedin_api-2.2.0/tests/test_linkedin_api.py +0 -10
- linkedin_api-2.2.0/tests/test_linkedin_api_requests.py +0 -350
- linkedin_api-2.2.0/tests/test_linkedin_client.py +0 -23
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/LICENSE +0 -0
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/linkedin_api/client.py +0 -0
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/linkedin_api/cookie_repository.py +0 -0
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/linkedin_api/settings.py +0 -0
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/linkedin_api/utils/__init__.py +0 -0
- {linkedin_api-2.2.0 → linkedin_api-2.3.0}/linkedin_api/utils/helpers.py +0 -0
|
@@ -1,57 +1,94 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 2.
|
|
4
|
-
Summary:
|
|
2
|
+
Name: linkedin-api
|
|
3
|
+
Version: 2.3.0
|
|
4
|
+
Summary: LinkedIn API for Python
|
|
5
5
|
Home-page: https://github.com/tomquirk/linkedin-api
|
|
6
|
-
Author: Tom Quirk
|
|
7
|
-
Author-email: tomquirkacc@gmail.com
|
|
8
6
|
License: MIT
|
|
9
|
-
|
|
7
|
+
Keywords: linkedin,api,automation,scraper,bot,data,sdk,ai,integration,profiles,network,company
|
|
8
|
+
Author: Tom Quirk
|
|
9
|
+
Author-email: tom@codalabs.au
|
|
10
|
+
Maintainer: Tom Quirk
|
|
11
|
+
Maintainer-email: tom@codalabs.au
|
|
12
|
+
Requires-Python: >=3.10,<4.0
|
|
10
13
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier:
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Requires-Dist: beautifulsoup4 (>=4.12.3,<5.0.0)
|
|
19
|
+
Requires-Dist: lxml (>=5.3.0,<6.0.0)
|
|
20
|
+
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
21
|
+
Project-URL: Documentation, https://linkedin-api.readthedocs.io
|
|
22
|
+
Project-URL: Repository, https://github.com/tomquirk/linkedin-api
|
|
12
23
|
Description-Content-Type: text/markdown
|
|
13
|
-
License-File: LICENSE
|
|
14
|
-
Requires-Dist: requests
|
|
15
|
-
Requires-Dist: beautifulsoup4
|
|
16
|
-
Requires-Dist: lxml
|
|
17
24
|
|
|
18
|
-
|
|
25
|
+
<div align="center">
|
|
26
|
+
|
|
27
|
+
# LinkedIn API for Python
|
|
28
|
+
|
|
29
|
+
 [](https://linkedin-api.readthedocs.io) [](https://pypi.org/project/linkedin-api/) [](https://discord.gg/9w5c6xzm)
|
|
30
|
+
|
|
31
|
+
Search profiles, send messages, find jobs and more in Python. No official API access required.
|
|
32
|
+
|
|
33
|
+
<p align="center">
|
|
34
|
+
<a href="https://linkedin-api.readthedocs.io">Documentation</a>
|
|
35
|
+
·
|
|
36
|
+
<a href="#quick-start">Quick Start</a>
|
|
37
|
+
·
|
|
38
|
+
<a href="#how-it-works">How it works</a>
|
|
39
|
+
</p>
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<br>
|
|
19
44
|
|
|
20
45
|
<h3 align="center">Sponsors</h3>
|
|
21
46
|
|
|
22
|
-
<p align="center"
|
|
47
|
+
<p align="center" dir="auto" >
|
|
48
|
+
<a href="https://bit.ly/3AFPGZd" target="_blank">
|
|
49
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/proapis.png" alt="iScraper by ProAPIs">
|
|
50
|
+
</a>
|
|
23
51
|
<a href="https://bit.ly/3SWnB63" target="_blank">
|
|
24
|
-
<img height="45px"
|
|
52
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/prospeo.png" alt="Prospeo">
|
|
25
53
|
</a>
|
|
26
54
|
<a href="https://bit.ly/3SRximo" target="_blank">
|
|
27
|
-
<img height="45px"
|
|
55
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/proxycurl.png" alt="proxycurl">
|
|
28
56
|
</a>
|
|
29
|
-
<a href="https://bit.ly/3Mbksvd"
|
|
30
|
-
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/
|
|
57
|
+
<a href="https://bit.ly/3Mbksvd" target="_blank">
|
|
58
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/lix.png" alt="Lix">
|
|
31
59
|
</a>
|
|
32
60
|
<a href="https://bit.ly/3WOIMrX" target="_blank">
|
|
33
|
-
<img height="70px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/
|
|
61
|
+
<img height="70px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/unipile.png" alt="Unipile">
|
|
34
62
|
</a>
|
|
35
63
|
<a href="https://bit.ly/4fUyE9J" target="_blank">
|
|
36
|
-
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/
|
|
64
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/scrapin.png" alt="Scrapin">
|
|
37
65
|
</a>
|
|
38
66
|
</p>
|
|
39
67
|
|
|
40
|
-
<
|
|
68
|
+
<p align="center"><a href="https://bit.ly/4cCjbIq" target="_blank">Become a sponsor</a></p>
|
|
41
69
|
|
|
42
|
-
|
|
70
|
+
<br>
|
|
43
71
|
|
|
44
|
-
|
|
72
|
+
## Features
|
|
45
73
|
|
|
46
|
-
No
|
|
74
|
+
- ✅ No official API access required. Just use a valid LinkedIn user account.
|
|
75
|
+
- ✅ Direct HTTP API interface. No Selenium, Pupeteer, or other browser-based scraping methods.
|
|
76
|
+
- ✅ Get and search people, companies, jobs, posts
|
|
77
|
+
- ✅ Send and retrieve messages
|
|
78
|
+
- ✅ Send and accept connection requests
|
|
79
|
+
- ✅ Get and react to posts
|
|
47
80
|
|
|
48
|
-
|
|
81
|
+
And more! [Read the docs](https://linkedin-api.readthedocs.io/en/latest/api.html) for all API methods.
|
|
82
|
+
|
|
83
|
+
> [!IMPORTANT]
|
|
84
|
+
> This library is not officially supported by LinkedIn. Using this library might violate LinkedIn's Terms of Service. Use it at your own risk.
|
|
49
85
|
|
|
50
86
|
## Installation
|
|
51
87
|
|
|
52
|
-
>
|
|
88
|
+
> [!NOTE]
|
|
89
|
+
> Python >= 3.10 required
|
|
53
90
|
|
|
54
|
-
|
|
91
|
+
###
|
|
55
92
|
|
|
56
93
|
```bash
|
|
57
94
|
pip install linkedin-api
|
|
@@ -65,14 +102,15 @@ pip install git+https://github.com/tomquirk/linkedin-api.git
|
|
|
65
102
|
|
|
66
103
|
### Quick Start
|
|
67
104
|
|
|
68
|
-
>
|
|
105
|
+
> [!TIP]
|
|
106
|
+
> See all API methods on the [docs](https://linkedin-api.readthedocs.io/en/latest/api.html).
|
|
69
107
|
|
|
70
108
|
The following snippet demonstrates a few basic linkedin_api use cases:
|
|
71
109
|
|
|
72
110
|
```python
|
|
73
111
|
from linkedin_api import Linkedin
|
|
74
112
|
|
|
75
|
-
# Authenticate using any Linkedin account credentials
|
|
113
|
+
# Authenticate using any Linkedin user account credentials
|
|
76
114
|
api = Linkedin('reedhoffman@linkedin.com', '*******')
|
|
77
115
|
|
|
78
116
|
# GET a profile
|
|
@@ -172,49 +210,84 @@ Scrape Any Data from LinkedIn, without limit with [ScrapIn API](https://bit.ly/4
|
|
|
172
210
|
- Interactive API documentation
|
|
173
211
|
- A highly stable API, backed by over 4 years of experience in data provisioning, with the added reliability of two additional data provider brands owned by the company behind ScrapIn.
|
|
174
212
|
|
|
175
|
-
Try it for free. [Get your API key now](https://bit.ly/4fUyE9J)
|
|
176
|
-
|
|
213
|
+
Try it for free. [Get your API key now](https://bit.ly/4fUyE9J)
|
|
177
214
|
|
|
178
215
|
</details>
|
|
179
216
|
|
|
180
|
-
>
|
|
217
|
+
<h3>
|
|
218
|
+
<a href="https://bit.ly/3AFPGZd">
|
|
219
|
+
iScraper by ProAPIs, Inc.
|
|
220
|
+
</a>
|
|
221
|
+
</h3>
|
|
181
222
|
|
|
182
|
-
|
|
223
|
+
Access high-quality, real-time LinkedIn data at scale with [iScraper API](https://bit.ly/3AFPGZd), offering unlimited scalability and unmatched accuracy.
|
|
183
224
|
|
|
184
|
-
|
|
225
|
+
<details>
|
|
185
226
|
|
|
186
|
-
|
|
227
|
+
<summary>Learn more</summary>
|
|
187
228
|
|
|
188
|
-
|
|
229
|
+
- Real-time LinkedIn data scraping with unmatched accuracy
|
|
230
|
+
- Hosted datasets with powerful Lucene search access
|
|
231
|
+
- Designed for enterprise and corporate-level applications
|
|
232
|
+
- Handles millions of scrapes per day, ensuring unlimited scalability
|
|
233
|
+
- Trusted by top enterprises for mission-critical data needs
|
|
234
|
+
- Interactive API documentation built on OpenAPI 3 specs for seamless integration
|
|
235
|
+
- Backed by over 10 years of experience in real-time data provisioning
|
|
236
|
+
- Lowest price guarantee for high volume use
|
|
189
237
|
|
|
190
|
-
|
|
238
|
+
Get started [here](https://bit.ly/3AFPGZd).
|
|
191
239
|
|
|
192
|
-
|
|
240
|
+
</details>
|
|
193
241
|
|
|
194
|
-
|
|
242
|
+
> End sponsored section
|
|
195
243
|
|
|
196
244
|
## Development
|
|
197
245
|
|
|
198
246
|
### Dependencies
|
|
199
247
|
|
|
200
|
-
-
|
|
248
|
+
- [`poetry`](https://python-poetry.org/docs/)
|
|
201
249
|
- A valid Linkedin user account (don't use your personal account, if possible)
|
|
202
|
-
- [`pipenv`](https://pipenv.pypa.io/en/latest/) (optional)
|
|
203
250
|
|
|
204
251
|
### Development installation
|
|
205
252
|
|
|
206
|
-
1. Create a `.env` config file
|
|
207
|
-
2. Install dependencies
|
|
253
|
+
1. Create a `.env` config file (use `.env.example` as a reference)
|
|
254
|
+
2. Install dependencies using `poetry`:
|
|
208
255
|
|
|
209
256
|
```bash
|
|
210
|
-
|
|
211
|
-
|
|
257
|
+
poetry install
|
|
258
|
+
poetry self add poetry-plugin-dotenv
|
|
212
259
|
```
|
|
213
260
|
|
|
214
261
|
### Run tests
|
|
215
262
|
|
|
263
|
+
Run all tests:
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
poetry run pytest
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Run unit tests:
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
poetry run pytest tests/unit
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
Run E2E tests:
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
poetry run pytest tests/e2e
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Lint
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
poetry run black --check .
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Or to fix:
|
|
288
|
+
|
|
216
289
|
```bash
|
|
217
|
-
|
|
290
|
+
poetry run black .
|
|
218
291
|
```
|
|
219
292
|
|
|
220
293
|
### Troubleshooting
|
|
@@ -236,11 +309,11 @@ Please add more as you come across them.
|
|
|
236
309
|
|
|
237
310
|
## How it works
|
|
238
311
|
|
|
239
|
-
This project attempts to provide a simple Python interface for the
|
|
312
|
+
This project attempts to provide a simple Python interface for the LinkedIn API.
|
|
240
313
|
|
|
241
|
-
> Do you mean the [legit
|
|
314
|
+
> Do you mean the [legit LinkedIn API](https://developer.linkedin.com/)?
|
|
242
315
|
|
|
243
|
-
NO! To retrieve structured data, the [
|
|
316
|
+
NO! To retrieve structured data, the [LinkedIn Website](https://linkedin.com) uses a service they call **Voyager**. Voyager endpoints give us access to pretty much everything we could want from LinkedIn: profiles, companies, connections, messages, etc. - anything that you can see on linkedin.com, we can get from Voyager.
|
|
244
317
|
|
|
245
318
|
This project aims to provide complete coverage for Voyager.
|
|
246
319
|
|
|
@@ -264,11 +337,11 @@ https://www.linkedin.com/voyager/api /identity/profileView/tom-quirk
|
|
|
264
337
|
|
|
265
338
|
They are authenticated with a simple cookie, which we send with every request, along with a bunch of headers.
|
|
266
339
|
|
|
267
|
-
To get a cookie, we POST a given username and password (of a valid
|
|
340
|
+
To get a cookie, we POST a given username and password (of a valid LinkedIn user account) to `https://www.linkedin.com/uas/authenticate`.
|
|
268
341
|
|
|
269
342
|
### Find new endpoints
|
|
270
343
|
|
|
271
|
-
We're looking at the
|
|
344
|
+
We're looking at the LinkedIn website and we spot some data we want. What now?
|
|
272
345
|
|
|
273
346
|
The following describes the most reliable method to find relevant endpoints:
|
|
274
347
|
|
|
@@ -319,6 +392,12 @@ It could be possible to document (and implement a nice interface for) this query
|
|
|
319
392
|
|
|
320
393
|
### Release a new version
|
|
321
394
|
|
|
322
|
-
1. Bump `
|
|
323
|
-
1. `
|
|
324
|
-
1. `
|
|
395
|
+
1. Bump `version` in `pyproject.toml`
|
|
396
|
+
1. `poetry build`
|
|
397
|
+
1. `poetry publish`
|
|
398
|
+
1. Draft release notes in GitHub.
|
|
399
|
+
|
|
400
|
+
## Disclaimer
|
|
401
|
+
|
|
402
|
+
This library is not endorsed or supported by LinkedIn. It is an unofficial library intended for educational purposes and personal use only. By using this library, you agree to not hold the author or contributors responsible for any consequences resulting from its usage.
|
|
403
|
+
|
|
@@ -1,57 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# LinkedIn API for Python
|
|
4
|
+
|
|
5
|
+
 [](https://linkedin-api.readthedocs.io) [](https://pypi.org/project/linkedin-api/) [](https://discord.gg/9w5c6xzm)
|
|
6
|
+
|
|
7
|
+
Search profiles, send messages, find jobs and more in Python. No official API access required.
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://linkedin-api.readthedocs.io">Documentation</a>
|
|
11
|
+
·
|
|
12
|
+
<a href="#quick-start">Quick Start</a>
|
|
13
|
+
·
|
|
14
|
+
<a href="#how-it-works">How it works</a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<br>
|
|
19
20
|
|
|
20
21
|
<h3 align="center">Sponsors</h3>
|
|
21
22
|
|
|
22
|
-
<p align="center"
|
|
23
|
+
<p align="center" dir="auto" >
|
|
24
|
+
<a href="https://bit.ly/3AFPGZd" target="_blank">
|
|
25
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/proapis.png" alt="iScraper by ProAPIs">
|
|
26
|
+
</a>
|
|
23
27
|
<a href="https://bit.ly/3SWnB63" target="_blank">
|
|
24
|
-
<img height="45px"
|
|
28
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/prospeo.png" alt="Prospeo">
|
|
25
29
|
</a>
|
|
26
30
|
<a href="https://bit.ly/3SRximo" target="_blank">
|
|
27
|
-
<img height="45px"
|
|
31
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/proxycurl.png" alt="proxycurl">
|
|
28
32
|
</a>
|
|
29
|
-
<a href="https://bit.ly/3Mbksvd"
|
|
30
|
-
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/
|
|
33
|
+
<a href="https://bit.ly/3Mbksvd" target="_blank">
|
|
34
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/lix.png" alt="Lix">
|
|
31
35
|
</a>
|
|
32
36
|
<a href="https://bit.ly/3WOIMrX" target="_blank">
|
|
33
|
-
<img height="70px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/
|
|
37
|
+
<img height="70px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/unipile.png" alt="Unipile">
|
|
34
38
|
</a>
|
|
35
39
|
<a href="https://bit.ly/4fUyE9J" target="_blank">
|
|
36
|
-
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/
|
|
40
|
+
<img height="45px" src="https://raw.githubusercontent.com/tomquirk/linkedin-api/main/docs/assets/logos/scrapin.png" alt="Scrapin">
|
|
37
41
|
</a>
|
|
38
42
|
</p>
|
|
39
43
|
|
|
40
|
-
<
|
|
44
|
+
<p align="center"><a href="https://bit.ly/4cCjbIq" target="_blank">Become a sponsor</a></p>
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
<br>
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
## Features
|
|
45
49
|
|
|
46
|
-
No
|
|
50
|
+
- ✅ No official API access required. Just use a valid LinkedIn user account.
|
|
51
|
+
- ✅ Direct HTTP API interface. No Selenium, Pupeteer, or other browser-based scraping methods.
|
|
52
|
+
- ✅ Get and search people, companies, jobs, posts
|
|
53
|
+
- ✅ Send and retrieve messages
|
|
54
|
+
- ✅ Send and accept connection requests
|
|
55
|
+
- ✅ Get and react to posts
|
|
47
56
|
|
|
48
|
-
|
|
57
|
+
And more! [Read the docs](https://linkedin-api.readthedocs.io/en/latest/api.html) for all API methods.
|
|
58
|
+
|
|
59
|
+
> [!IMPORTANT]
|
|
60
|
+
> This library is not officially supported by LinkedIn. Using this library might violate LinkedIn's Terms of Service. Use it at your own risk.
|
|
49
61
|
|
|
50
62
|
## Installation
|
|
51
63
|
|
|
52
|
-
>
|
|
64
|
+
> [!NOTE]
|
|
65
|
+
> Python >= 3.10 required
|
|
53
66
|
|
|
54
|
-
|
|
67
|
+
###
|
|
55
68
|
|
|
56
69
|
```bash
|
|
57
70
|
pip install linkedin-api
|
|
@@ -65,14 +78,15 @@ pip install git+https://github.com/tomquirk/linkedin-api.git
|
|
|
65
78
|
|
|
66
79
|
### Quick Start
|
|
67
80
|
|
|
68
|
-
>
|
|
81
|
+
> [!TIP]
|
|
82
|
+
> See all API methods on the [docs](https://linkedin-api.readthedocs.io/en/latest/api.html).
|
|
69
83
|
|
|
70
84
|
The following snippet demonstrates a few basic linkedin_api use cases:
|
|
71
85
|
|
|
72
86
|
```python
|
|
73
87
|
from linkedin_api import Linkedin
|
|
74
88
|
|
|
75
|
-
# Authenticate using any Linkedin account credentials
|
|
89
|
+
# Authenticate using any Linkedin user account credentials
|
|
76
90
|
api = Linkedin('reedhoffman@linkedin.com', '*******')
|
|
77
91
|
|
|
78
92
|
# GET a profile
|
|
@@ -172,49 +186,84 @@ Scrape Any Data from LinkedIn, without limit with [ScrapIn API](https://bit.ly/4
|
|
|
172
186
|
- Interactive API documentation
|
|
173
187
|
- A highly stable API, backed by over 4 years of experience in data provisioning, with the added reliability of two additional data provider brands owned by the company behind ScrapIn.
|
|
174
188
|
|
|
175
|
-
Try it for free. [Get your API key now](https://bit.ly/4fUyE9J)
|
|
176
|
-
|
|
189
|
+
Try it for free. [Get your API key now](https://bit.ly/4fUyE9J)
|
|
177
190
|
|
|
178
191
|
</details>
|
|
179
192
|
|
|
180
|
-
>
|
|
193
|
+
<h3>
|
|
194
|
+
<a href="https://bit.ly/3AFPGZd">
|
|
195
|
+
iScraper by ProAPIs, Inc.
|
|
196
|
+
</a>
|
|
197
|
+
</h3>
|
|
181
198
|
|
|
182
|
-
|
|
199
|
+
Access high-quality, real-time LinkedIn data at scale with [iScraper API](https://bit.ly/3AFPGZd), offering unlimited scalability and unmatched accuracy.
|
|
183
200
|
|
|
184
|
-
|
|
201
|
+
<details>
|
|
185
202
|
|
|
186
|
-
|
|
203
|
+
<summary>Learn more</summary>
|
|
187
204
|
|
|
188
|
-
|
|
205
|
+
- Real-time LinkedIn data scraping with unmatched accuracy
|
|
206
|
+
- Hosted datasets with powerful Lucene search access
|
|
207
|
+
- Designed for enterprise and corporate-level applications
|
|
208
|
+
- Handles millions of scrapes per day, ensuring unlimited scalability
|
|
209
|
+
- Trusted by top enterprises for mission-critical data needs
|
|
210
|
+
- Interactive API documentation built on OpenAPI 3 specs for seamless integration
|
|
211
|
+
- Backed by over 10 years of experience in real-time data provisioning
|
|
212
|
+
- Lowest price guarantee for high volume use
|
|
189
213
|
|
|
190
|
-
|
|
214
|
+
Get started [here](https://bit.ly/3AFPGZd).
|
|
191
215
|
|
|
192
|
-
|
|
216
|
+
</details>
|
|
193
217
|
|
|
194
|
-
|
|
218
|
+
> End sponsored section
|
|
195
219
|
|
|
196
220
|
## Development
|
|
197
221
|
|
|
198
222
|
### Dependencies
|
|
199
223
|
|
|
200
|
-
-
|
|
224
|
+
- [`poetry`](https://python-poetry.org/docs/)
|
|
201
225
|
- A valid Linkedin user account (don't use your personal account, if possible)
|
|
202
|
-
- [`pipenv`](https://pipenv.pypa.io/en/latest/) (optional)
|
|
203
226
|
|
|
204
227
|
### Development installation
|
|
205
228
|
|
|
206
|
-
1. Create a `.env` config file
|
|
207
|
-
2. Install dependencies
|
|
229
|
+
1. Create a `.env` config file (use `.env.example` as a reference)
|
|
230
|
+
2. Install dependencies using `poetry`:
|
|
208
231
|
|
|
209
232
|
```bash
|
|
210
|
-
|
|
211
|
-
|
|
233
|
+
poetry install
|
|
234
|
+
poetry self add poetry-plugin-dotenv
|
|
212
235
|
```
|
|
213
236
|
|
|
214
237
|
### Run tests
|
|
215
238
|
|
|
239
|
+
Run all tests:
|
|
240
|
+
|
|
216
241
|
```bash
|
|
217
|
-
|
|
242
|
+
poetry run pytest
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Run unit tests:
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
poetry run pytest tests/unit
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Run E2E tests:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
poetry run pytest tests/e2e
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Lint
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
poetry run black --check .
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Or to fix:
|
|
264
|
+
|
|
265
|
+
```bash
|
|
266
|
+
poetry run black .
|
|
218
267
|
```
|
|
219
268
|
|
|
220
269
|
### Troubleshooting
|
|
@@ -236,11 +285,11 @@ Please add more as you come across them.
|
|
|
236
285
|
|
|
237
286
|
## How it works
|
|
238
287
|
|
|
239
|
-
This project attempts to provide a simple Python interface for the
|
|
288
|
+
This project attempts to provide a simple Python interface for the LinkedIn API.
|
|
240
289
|
|
|
241
|
-
> Do you mean the [legit
|
|
290
|
+
> Do you mean the [legit LinkedIn API](https://developer.linkedin.com/)?
|
|
242
291
|
|
|
243
|
-
NO! To retrieve structured data, the [
|
|
292
|
+
NO! To retrieve structured data, the [LinkedIn Website](https://linkedin.com) uses a service they call **Voyager**. Voyager endpoints give us access to pretty much everything we could want from LinkedIn: profiles, companies, connections, messages, etc. - anything that you can see on linkedin.com, we can get from Voyager.
|
|
244
293
|
|
|
245
294
|
This project aims to provide complete coverage for Voyager.
|
|
246
295
|
|
|
@@ -264,11 +313,11 @@ https://www.linkedin.com/voyager/api /identity/profileView/tom-quirk
|
|
|
264
313
|
|
|
265
314
|
They are authenticated with a simple cookie, which we send with every request, along with a bunch of headers.
|
|
266
315
|
|
|
267
|
-
To get a cookie, we POST a given username and password (of a valid
|
|
316
|
+
To get a cookie, we POST a given username and password (of a valid LinkedIn user account) to `https://www.linkedin.com/uas/authenticate`.
|
|
268
317
|
|
|
269
318
|
### Find new endpoints
|
|
270
319
|
|
|
271
|
-
We're looking at the
|
|
320
|
+
We're looking at the LinkedIn website and we spot some data we want. What now?
|
|
272
321
|
|
|
273
322
|
The following describes the most reliable method to find relevant endpoints:
|
|
274
323
|
|
|
@@ -319,6 +368,11 @@ It could be possible to document (and implement a nice interface for) this query
|
|
|
319
368
|
|
|
320
369
|
### Release a new version
|
|
321
370
|
|
|
322
|
-
1. Bump `
|
|
323
|
-
1. `
|
|
324
|
-
1. `
|
|
371
|
+
1. Bump `version` in `pyproject.toml`
|
|
372
|
+
1. `poetry build`
|
|
373
|
+
1. `poetry publish`
|
|
374
|
+
1. Draft release notes in GitHub.
|
|
375
|
+
|
|
376
|
+
## Disclaimer
|
|
377
|
+
|
|
378
|
+
This library is not endorsed or supported by LinkedIn. It is an unofficial library intended for educational purposes and personal use only. By using this library, you agree to not hold the author or contributors responsible for any consequences resulting from its usage.
|