Giter VIP home page Giter VIP logo

Comments (8)

drawrowfly avatar drawrowfly commented on May 19, 2024 2

Also new update is coming soon, with speed improvements and new features

from tiktok-scraper.

andycloke avatar andycloke commented on May 19, 2024

Update - the node version does seem to work when using usernames, not user ids, e.g.

const posts = await TikTokScraper.user(USER_NAME, {
      user_data: true,
      number: 10,
    });

So maybe updating that just got missed in the 0.0.16 release?

from tiktok-scraper.

drawrowfly avatar drawrowfly commented on May 19, 2024

Regarding by_user_id
// Some TikTok user id's are larger then MAX_SAFE_INTEGER, you need to pass user id as a string

And it should work

Let me know

from tiktok-scraper.

andycloke avatar andycloke commented on May 19, 2024

@drawrowfly, unfortunately, I am already passing user_id as a string and it is not working. Can you try it on your side?

from tiktok-scraper.

drawrowfly avatar drawrowfly commented on May 19, 2024

I did and it worked well

const TikTok = require('tiktok-scraper');

(async () => {
    const posts = await TikTok.user('66654060363731107901', {
        by_user_id: true,
        user_data: true,
        number: 10,
    });
    console.log(posts);
})();

from tiktok-scraper.

andycloke avatar andycloke commented on May 19, 2024

That's so strange. I tried that exact code and get { collector: [] }

from tiktok-scraper.

drawrowfly avatar drawrowfly commented on May 19, 2024

Ouch my bad, this is bad user id, try please with this one '6634543319555588102'

from tiktok-scraper.

andycloke avatar andycloke commented on May 19, 2024

That one works, thanks, I think the issue is I was trying to scrape an account that has no been made private, so it doesn't return anything. I'll close the issue - thanks for your help

from tiktok-scraper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.