Comments (7)
@sami-sage @anpato
What you're doing wrong is including the '&_signature=' bit when calling browser.js, this is wrong and will result in a token that only returns empty responses.
You're supposed to exclude that part during signature creation and add it when you're making an HTTP request to that endpoint.
from tiktok-signature.
+1 Same issue here, looks like tiktok changed something with the signature again.
from tiktok-signature.
Nothing has been changed, browser.js is still creating correct signatures for me.
from tiktok-signature.
Thank you very much @GodsWithin
I checked the way you mentioned and it worked like a charm. Only issue is, the token seems to be expiring after some time and we need to get the token again by stopping the server and restarting it by doing
node server.js
from tiktok-signature.
@sami-sage I just wrote a dirty bash script to do that for me.
Do note that it can happen from time to time that it fails to restart, therefor I advice you to store the previously used non-empty/non-whitespace signature result so that your application doesn't fail when the server is down for 4 hours.
from tiktok-signature.
Thank you gentlemen! Interestingly enough it worked prior without sending &_signature before.
from tiktok-signature.
@sami-sage I just wrote a dirty bash script to do that for me.
Do note that it can happen from time to time that it fails to restart, therefor I advice you to store the previously used non-empty/non-whitespace signature result so that your application doesn't fail when the server is down for 4 hours.
Thanks @GodsWithin , I will try this
from tiktok-signature.
Related Issues (20)
- How to get msToken HOT 3
- page.addScriptTag: Refused to execute inline script because it violates the following Content Security Policy directive: "script-src... HOT 1
- Retrieving `secUid`? HOT 3
- Cannot run with Docker on Linux + is it possible to dynamically get hardcoded values? HOT 6
- `user-info.js` example times out HOT 2
- Trending example returns list of users instead of list of videos HOT 2
- trending.py returns empty response HOT 2
- Pulling data for all user videos? HOT 2
- Normal search example HOT 1
- How to sign a hashtag request? HOT 1
- python support HOT 4
- How do you get the downloadAddress to work? HOT 1
- X-bogus on video list api
- User-videos request is returning empty data
- URL length issue reported, localhost: 8080/signature
- Hashtag is only getting 30 results
- how to setup in vercel
- Fetch user info returns empty info HOT 2
- Fetching user videos not working on deployment HOT 4
- Frequent Empty String Returns in examples/user-video.js HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiktok-signature.