Replies: 5 comments 5 replies
-
I was wondering this myself. Here's how I'm doing it so far:
Not sure if that is technically the correct way. It does seem to work some times, but I'm running into other issues. Hope that helps |
Beta Was this translation helpful? Give feedback.
-
Help me too how to pick correct ms token
…On Sun, May 12, 2024 at 2:19 PM Pettric Taotogaomanaia Huch mamea < ***@***.***> wrote:
Tried this and am getting errors as follows:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\Gorilla
Rig\Desktop\RnD\TiktokWebscraper\TikTok-Api\examples\trending_example.py",
line 20, in
asyncio.run(trending_videos())
File "C:\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\asyncio\base_events.py", line 653, in
run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\Gorilla
Rig\Desktop\RnD\TiktokWebscraper\TikTok-Api\examples\trending_example.py",
line 11, in trending_videos
async for video in api.trending.videos(count=30):
File "C:\Users\Gorilla
Rig\Desktop\RnD\TiktokWebscraper\TikTok-Api\TikTokApi\api\trending.py",
line 43, in videos
resp = await Trending.parent.make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Gorilla
Rig\Desktop\RnD\TiktokWebscraper\TikTok-Api\TikTokApi\tiktok.py", line 441,
in make_request
raise EmptyResponseException(result, "TikTok returned an empty response")
TikTokApi.exceptions.EmptyResponseException: None -> TikTok returned an
empty response
any update on this issue? I am trying to run the trending_example.py file
using python -m examples.trending_examples but its failing to retrieve any
data
—
Reply to this email directly, view it on GitHub
<#1101 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPI5XPQMCSNJW5XVZDLMOTZB4X2TAVCNFSM6AAAAABBOVG5UKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIMBTHEYDO>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
Yes its kinda weird because my msToken keeps changing every minute or so |
Beta Was this translation helpful? Give feedback.
-
I can confirm the The documentation, including the linked YouTube video, seems outdated and causes confusion. Without proper documentation, this repository is not reliable. I recommend finding a different API for TikTok integration. |
Beta Was this translation helpful? Give feedback.
-
Are you guys dumb, msToken is being recreated every request from the response cookie, but the only valid msToken is the one which is using the common / report endpoint by encrypting the strData (web mssdk), the the strData is the one which depends if its valid or not |
Beta Was this translation helpful? Give feedback.
-
how to get the proper ms token? or wher and how to generate it? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions