Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/slavaganzin/linkedin-scrapper
- Owner: slavaGanzin
- Created: 2015-11-29T09:59:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-15T22:48:25.000Z (over 8 years ago)
- Last Synced: 2024-11-01T10:02:42.257Z (12 days ago)
- Language: CoffeeScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.