Open rupertxyz opened 1 year ago
ngl, I just used sudo command in front of npm command.
But it came out with this warning instead
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated json2csv@4.5.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
for me, it was an issue with canvas because I have an ARM cpu (M1 Mac). Running this fixed it for me.
brew install pkg-config cairo pango libpng jpeg giflib librsvg
Are you guys able to download videos? I get cant extract video metadata
Are you guys able to download videos? I get cant extract video metadata
no in nodejs
const tiktokScraper = require('tiktok-scraper');
(async () => {
try {
const user = await tiktokScraper.user('userhere');
console.log(user);
} catch (error) {
console.log("error"+error);
}
})();
result :
{
headers: {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4132.148 Safari/537.36',
referer: 'https://www.tiktok.com/',
cookie: 'tt_csrf_token=5OjOiYW6-NrFPN6DU; tt_chain_token=NyWSZSdRBQvsQ2faMvtgFQ=='
},
collector: []
}
any solution
Solution is that maintainers of tiktok-scraper update their package dependencies...
Here's the full error message when trying to npm install. Anyone has a solution for this?