tiktok-scraper icon indicating copy to clipboard operation
tiktok-scraper copied to clipboard

Tiktok has changed response for username scraping.

Open bojanmilinkovic opened this issue 3 years ago • 11 comments

In the function public async getUserProfileInfo(): Promise<UserMetadata> Where there comes to splitting by

bojanmilinkovic avatar Jan 21 '22 09:01 bojanmilinkovic

is not working for me

Alexo88 avatar Jan 23 '22 05:01 Alexo88

Error: Can't extract user metadata from the html page. Make sure that user does exist and try to use proxy at TikTokScraper.getUserProfileInfo (node_modules\tiktok-scraper\build\core\TikTok.js:713:15) at async Object.exports.getUserProfileInfo (node_modules\tiktok-scraper\build\entry.js:138:20)

TheFacelessOne avatar Jan 24 '22 04:01 TheFacelessOne

Same probem here using user function. Scraper seems to start but then there is no output

junio-AC avatar Jan 28 '22 10:01 junio-AC

Same probem here using user function. Scraper seems to start but then there is no output

same

bfeldman89 avatar Feb 11 '22 01:02 bfeldman89

same.. starts but nothing downloads.. any alternatives anyone found ? cant seem to find anything

foftycent avatar Feb 13 '22 20:02 foftycent

I've been using this https://www.npmjs.com/package/got-scraping

with this little function

I'm only using it for the same tiktok account everytime though and only to check the follower count 🤷

async function TikTokUpdate() {
    console.log('Tiktok update started')
    const Tok = await gotScraping({ url: 'TIKTOK USER URL' });

    const start = Tok.body.indexOf('followers-count');
    const end = Tok.body.indexOf('<', start);
    const tikTokF = Tok.body.slice(start + 17, end);
    console.log('Tiktok followers = ' + tikTokF);

    return parseInt(tikTokF);
}

TheFacelessOne avatar Feb 13 '22 20:02 TheFacelessOne

I've been using this https://www.npmjs.com/package/got-scraping

with this little function

I'm only using it for the same tiktok account everytime though and only to check the follower count 🤷

async function TikTokUpdate() {
    console.log('Tiktok update started')
    const Tok = await gotScraping({ url: 'TIKTOK USER URL' });

    const start = Tok.body.indexOf('followers-count');
    const end = Tok.body.indexOf('<', start);
    const tikTokF = Tok.body.slice(start + 17, end);
    console.log('Tiktok followers = ' + tikTokF);

    return parseInt(tikTokF);
}

I see.. I don't think you can download videos using this though. :(

foftycent avatar Feb 13 '22 21:02 foftycent

https://rapidapi.com/neotank/api/tiktok-bulletproof take a look at this scraping solution, it offers limited set of endpoints but is pretty stable.

skmachine avatar Apr 17 '22 14:04 skmachine

same.. starts but nothing downloads.. any alternatives anyone found ? cant seem to find anything

same problem. Any solution?

pvita avatar May 19 '22 11:05 pvita

I've been using this https://www.npmjs.com/package/got-scraping

with this little function

I'm only using it for the same tiktok account everytime though and only to check the follower count 🤷

async function TikTokUpdate() {
    console.log('Tiktok update started')
    const Tok = await gotScraping({ url: 'TIKTOK USER URL' });

    const start = Tok.body.indexOf('followers-count');
    const end = Tok.body.indexOf('<', start);
    const tikTokF = Tok.body.slice(start + 17, end);
    console.log('Tiktok followers = ' + tikTokF);

    return parseInt(tikTokF);
}

thank you very much

Oxicode avatar Aug 12 '22 14:08 Oxicode

same.. starts but nothing downloads.. any alternatives anyone found ? cant seem to find anything

same problem. Any solution?

+1

bakharew avatar Sep 01 '22 11:09 bakharew