安装npm linkedin-scraper包之后,我创建了一个.js代码,但是我使用提供的url获得了null输出。如何正确使用这个包?
var linkedinScraper = require('linkedin-scraper');
var url = 'https://in.linkedin.com/in/[user]';
linkedinScraper(url, function(err, profile) {
if (err) {
console.log(err);
} else {
console.log(profile);
}
});
这是我得到的输出:
output:
{ past: [],
websites: [],
experience: [],
honors: [],
projects: [],
educationlist: [],
name: '',
headline: '',
location: '',
current: '',
education: '' }