Giter Site home page Giter Site logo

Comments (5)

carcabot avatar carcabot commented on May 16, 2024 1

@wildshaman @eliranmoyal

I have added some changes to the current code and now you can get also verifyFp parameter together with signature.

All you have to do is to pass verifyFp parameter like you use the _signature param.

the response of signer.sign should be like this

 {"signature":"DujjbAAgEBW5rRjddk.Jbw7o4nAAFAo","verifyFp":"verify_kamf6ehv_80g0FE87_GAoN_4PgQ_9w6P_xgcNXK53gx2W"}

from tiktok-signature.

carcabot avatar carcabot commented on May 16, 2024

I'm not sure why you got empty result. I've just tried this url and it worked without issues.

https://m.tiktok.com/share/item/list?secUid=&id=1638159820316677&type=3&count=30&minCursor=0&maxCursor=0&shareUid=&lang=&verifyFp=

from tiktok-signature.

wildshaman avatar wildshaman commented on May 16, 2024

Getting user's videos is ok for:
https://m.tiktok.com/api/item_list/?count=100&id={user id}&type=1&secUid=&maxCursor=0&minCursor=0&sourceType=8&appId=1233&region=RU&language=ru

Getting trands - too:
https://m.tiktok.com/api/item_list/?count=100&id=1&type=5&secUid=&maxCursor=1&minCursor=0&sourceType=12&appId=1233

But getting hashtag's videos - always returns empty string (with signature, generated the same way as for other urls);

from tiktok-signature.

eliranmoyal avatar eliranmoyal commented on May 16, 2024

Hi @wildshaman
I think you need the verifyFp parameter on the url.
I saw on their code they take it from the cookie document.cookie.match(/s_v_web_id=(\w+)/)
But I had bad luck trying to get it from the cookie. hope that helps

from tiktok-signature.

carcabot avatar carcabot commented on May 16, 2024

@wildshaman try to get a new token by restarting your server every hour or more.

Probably if tac token is too old, it requires verifyFp parameter.

from tiktok-signature.

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.