Skip to content

Commit 2fd37a9

Browse files
author
Nicolas
committed
index.js fixed + readme improved
1 parent dc9a8cd commit 2fd37a9

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Linkedin client
1+
# Linkedin Client
22

3-
This service allows to fetch data about individuals or companies on [Linkedin](https://www.linkedin.com).
3+
This package 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

@@ -51,24 +51,16 @@ npm test
5151
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.
5252

5353
```bash
54-
git clone https://github.com/Cooya/Linkedin.git linkedin
55-
cd linkedin
54+
git clone https://github.com/Cooya/Linkedin-Client.git linkedin-client
55+
cd linkedin-client
5656
npm install
5757
npm run build
58-
touch config.js
58+
echo "module.exports = { cookie: 'YOUR_LINKEDIN_COOKIE' };" > config.js
5959
npm start
6060
```
6161

62-
Complete the configuration file "config.js" as follows :
63-
64-
```js
65-
module.exports = {
66-
cookie: 'YOUR_LINKEDIN_COOKIE'
67-
};
68-
```
69-
7062
## Context
7163

7264
- Folder _src/v1_ : At the very beginning, the project was a freelance mission for a client needing some leads. I used Linkedin API v1.
73-
- 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 retrieving data with [Puppeteer](https://github.com/puppeteer/puppeteer), a driver for an headless Google Chrome browser.
65+
- Folder _src/v2_ : After that I decided to design a web interface to showcase the tool. I was limited by the Linkedin API, so I somehow completed it by retrieving data with [Puppeteer](https://github.com/puppeteer/puppeteer), a driver for an headless Google Chrome browser.
7466
- 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.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { get: require('./src/LinkedinClient').getCompanyOrPeopleDetails };
1+
module.exports = require('./src/LinkedinClient');

0 commit comments

Comments
 (0)