Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/slavaganzin/linkedin-scrapper

Scrapper of public profiles at linkedIn
https://github.com/slavaganzin/linkedin-scrapper

Last synced: 6 days ago
JSON representation

Scrapper of public profiles at linkedIn

Awesome Lists containing this project

README

        

# linkedin-scrapper
Scrapper of linkedin public profiles

```
$ npm install linkedin-profile
```

```
var callback = function(obj) {
console.log(obj.result, obj.$, obj.response);
// obj.result -> json filled with linkedin data
// obj.$ -> cheerio object you can use as jQuery
// obj.response -> request's response object
}

var scrapper = require('linkedin-scrapper');
scrapper('http://public.profile.url', callback, additionalMapping={})
```

Can be extended with additionalMapping parameter which merges with mapping.coffee:

```
addditionalMapping = {
sections: {
your-section-name: {
mapping: {
field: '.additional > #selector'
}
}
}
defaultSectionMapping: {
field: '.additional default > #selector'
}
}
```
Be aware linkedin uses different markup for profiles when you are authorized/not authorized.
You should use not authorized selectors - this script didn't login (but it should).

# Troubleshooting
**LinkedIn markup may change. So launch** ```npm test``` **first**

Linkedin blocks AWS, Travis and other SaaS/PaaS by IP.