Skip to content

Commit d330147

Browse files
author
Nicolas
committed
some cleaning + tests display improved
1 parent b93cce1 commit d330147

File tree

6 files changed

+609
-555
lines changed

6 files changed

+609
-555
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# Linkedin scraper
1+
# Linkedin client
22

33
This service allows to fetch data about individuals or companies on [Linkedin](https://www.linkedin.com).
44

55
![app screenshot](https://cooya.fr/images/screenshots/linkedin-company.png)
66

77
## Demo
8-
You can try out the tool on my personal server [here](https://linkedin.cooya.fr). Remember this is only a showcase website.
8+
9+
You can try out the tool on my personal server [here](https://linkedin.cooya.fr). Remember this is only a showcase interface.
910

1011
## Context
12+
1113
- Folder _src/v1_ : At the very beginning, the project was a freelance mission for a client needing some leads. I used Linkedin API v1.
1214
- Folder _src/v2_ : After that I decided to design a web interface to showcase the tool, which might be useful for other people. I was limited by the Linkedin API, so I somehow completed it by scraping data with [Puppeteer](https://github.com/puppeteer/puppeteer), a driver for an headless Google Chrome browser.
1315
- The Linkedin API v1 is now deprecated and the v2 is not really usable so, in this third version, there is no more use of the API and I completely skipped the use of web browser, it is a simple HTTP request and [Cheerio](https://github.com/cheeriojs/cheerio) does the job.
1416

1517
## Installation
18+
1619
Want to try running it on you own ? You will need your Linkedin cookie called "**li_at**". This way, requests will be sent on your behalf.
20+
1721
```bash
1822
git clone https://github.com/Cooya/Linkedin.git linkedin
1923
cd linkedin
@@ -24,23 +28,29 @@ npm start
2428
```
2529

2630
Complete the configuration file "config.js" as follows :
31+
2732
```js
2833
module.exports = {
2934
cookie: 'YOUR_LINKEDIN_COOKIE'
3035
};
3136
```
3237

3338
## CLI usage
39+
3440
If you want to scrap people details :
41+
3542
```bash
3643
node src/cli.js https://www.linkedin.com/in/williamhgates/
3744
```
45+
3846
Or if you want to scrap company information :
47+
3948
```bash
4049
node src/cli.js https://www.linkedin.com/company/microsoft/
4150
```
4251

4352
## Tests
53+
4454
```bash
4555
npm test
4656
```

0 commit comments

Comments
 (0)