nhduy1985 / linkedin-export-tool Goto Github PK
View Code? Open in Web Editor NEWA NodeJS tool to export Linkedin data
A NodeJS tool to export Linkedin data
The oauth sign-in fails for me on firefox / linux.
This is when trying step 2 - Open the browser to request access authentication http://localhost:3001/oauth/linkedin
It redirects to:
And then the browser shows this:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Please contact the web site owners to inform them of this problem.
Chromium says "ERR_CONTENT_DECODING_FAILED"
I'm seeing this response from LinkedIn:
{ "errorCode": 0, "message": "This resource is no longer available under v1 APIs", "requestId": "HU8ZFX8HJK", "status": 410, "timestamp": 1562041016839 }
npm install
npm http GET https://registry.npmjs.org/fs/0.0.1
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/node-linkedin
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/node-linkedin
npm http 404 https://registry.npmjs.org/fs/0.0.1
npm ERR! Error: version not found: 0.0.1 : fs/0.0.1
npm ERR! at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:272:14)
npm ERR! at Request.self.callback (/usr/lib/nodejs/request/index.js:148:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/index.js:896:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
npm ERR! at IncomingMessage.<anonymous> (/usr/lib/nodejs/request/index.js:847:12)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR! at _stream_readable.js:920:16
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/tim/repo/linkedin-export-tool
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/tim/repo/linkedin-export-tool/npm-debug.log
npm ERR! not ok code 0
Not quite sure how I managed to trigger this, filing an issue for the record in case it happens again.
Had been changing the "Authorized Redirect URLs" list on LinkedIn, then when visiting http://localhost:3001/oauth/linkedin I got this:
TypeError: undefined is not a function
at Object.getAccessToken (/home/tim/repo/linkedin-export-tool/node_modules/node-linkedin/lib/auth.js:69:24)
at app.get.response (/home/tim/repo/linkedin-export-tool/app.js:17:19)
at Layer.handle [as handle_request] (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/layer.js:95:5)
at next (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/layer.js:95:5)
at /home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/index.js:330:12)
at next (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/router/index.js:271:10)
at expressInit (/home/tim/repo/linkedin-export-tool/node_modules/express/lib/middleware/init.js:33:5)
{ [Error: ENOENT, open 'export/linkedin.json'] errno: 34, code: 'ENOENT', path: 'export/linkedin.json' }
and there's nothing in the readme to say you need to create it first
create the folder manually and then it works
I thought initially it was the export that had died, but then I realized the oauth part had silently failed and dropped the following in a file called linkedin.json
:
{"error_description":"missing required parameters, includes an invalid parameter value,
parameter more than once. : Unable to retrieve access token : authorization code not
found","error":"invalid_request"}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.