Giter VIP home page Giter VIP logo

Comments (10)

Iucasmaia avatar Iucasmaia commented on May 30, 2024 4

Fix:

Line 73 change "api16-normal-useast5.us.tiktokv.com" for "api16-normal-v6.tiktokv.com".

from tiktok-voice.

benf152 avatar benf152 commented on May 30, 2024 2

api31-normal-useast2a.tiktokv.com

idk who you are but this worked thank you!!

from tiktok-voice.

HamzaBenLhouari avatar HamzaBenLhouari commented on May 30, 2024 1

Fix:

Line 73 change "api16-normal-useast5.us.tiktokv.com" for "api16-normal-v6.tiktokv.com".

I found a linke in an other prject worked fine for me ... thanks but how I get like this link if I face this problem in future ?

from tiktok-voice.

ElonGaties avatar ElonGaties commented on May 30, 2024 1

I seem to be able to find it inside of the storage tab in cookies of the window, which isn't too surprising as I wouldn't they would store a (possibly) changing ID in local storage (granted cookies are pretty similar to local storage in this case), I also seem to be able to get the session ID using MITM in the request headers, but if you couldn't get it using MITM, your method is also a good way of retrieving both the endpoint and ID.

from tiktok-voice.

compakevon avatar compakevon commented on May 30, 2024

Hello, hope you are doing great, just when I'm trying to run the script I have 2 issues : first one : playsound is relying on another python subprocess. Please use pip install pygobject if you want playsound to run more efficiently.

PS : when a try to run this command : " pip install pygobject " it's complete with errors so the installation get failled

second : {'status': 'Session ID is invalid', 'status_code': 5} . PS : I have a correct session Id how to solve them? thanks in advance.

Did you fix the second option?

from tiktok-voice.

HamzaBenLhouari avatar HamzaBenLhouari commented on May 30, 2024

Hello,
still facing the same issue
we need a working link like the last one " api16-normal-v6.tiktokv.com "
and tell us how do you get these links to solve this issue by ourselves.
thanks

from tiktok-voice.

ElonGaties avatar ElonGaties commented on May 30, 2024

I'm assuming that you just need to have proxy running on your phone to see the endpoint contacted, or emulate a phone with some sort of proxy.

from tiktok-voice.

szacomelli avatar szacomelli commented on May 30, 2024

Did anyone find a fix?

from tiktok-voice.

ElonGaties avatar ElonGaties commented on May 30, 2024

Just to follow up here, in order to get a session ID you need to have a sort of MITM on your mobile device or an emulator with TikTok installed, and snatch up the session ID from a request done by the app.

The way I have done this is using mitmproxy in HTTP mode with a proxy configured on my phone, it's really simplistic if you try to do this method.

Edit: this is one method to do so, however this can be done on a computer using the TikTok web app, defined here Wiki - Obtaining Session ID, however to get the actual request API endpoint, which seems to be different in different regions, you may need to follow my method described above.

from tiktok-voice.

denver-code avatar denver-code commented on May 30, 2024

Just to follow up here, in order to get a session ID you need to have a sort of MITM on your mobile device or an emulator with TikTok installed, and snatch up the session ID from a request done by the app.

The way I have done this is using mitmproxy in HTTP mode with a proxy configured on my phone, it's really simplistic if you try to do this method.

Edit: this is one method to do so, however this can be done on a computer using the TikTok web app, defined here Wiki - Obtaining Session ID, however to get the actual request API endpoint, which seems to be different in different regions, you may need to follow my method described above.

I couldn't get a session ID via my MITM proxy from phone, but I got api url instead, which is api31-normal-useast2a.tiktokv.com for me
then I authorised in web version, and made few actions(scroll, enter comment section) and through Network explorer(basic developer tool in every browser) got my sessionID from request cookies, fun thing that I couldn't find sessionID directly in web storage

from tiktok-voice.

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.