davidteather / TikTok-Api

The Unofficial TikTok API Wrapper In Python
https://davidteather.github.io/TikTok-Api
MIT License
4.69k stars 952 forks source link

api.get_Video_By_TikTok(data, language='en', proxy=None)[BUG] - Your Error Here #291

Closed ghost closed 3 years ago

ghost commented 3 years ago

Read Below!!! If this doesn't fix your issue delete these two lines

You may need to install chromedriver for your machine globally. Download it here and add it to your path.

Describe the bug

The get_video_By_Tiktok can't grab the download url because of the dictionary returned value has been modified(changed)

The buggy code class TiktokApi:

Please insert the code that is throwing errors or is giving you weird unexpected results.

# Code Goes Here

a['itemInfos']['video']['urls'][0] Expected behavior

A clear and concise description of what you expected to happen.

Error Trace (if any)

Put the error trace below if there's any error thrown.

# Error Trace Here

Desktop (please complete the following information):

Additional context replace the code with a['itemInfo']['itemStruct']['video']['downloadAddr']

Add any other context about the problem here.

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.70. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

rabiranjankumar commented 3 years ago

[W:pyppeteer.chromium_downloader] start chromium download. Download may take a few minutes. Traceback (most recent call last): File "downloadTikTok.py", line 8, in "https://www.tiktok.com/@raja_jii555/video/6817097295914388737", return_bytes=1 File "C:\conda\lib\site-packages\TikTokApi\tiktok.py", line 928, in get_Video_By_Url raise Exception("Deprecated. Other Methods Work Better.") Exception: Deprecated. Other Methods Work Better.

i am getting this error

davidteather commented 3 years ago

See #203

@rabiranjankumar I'm updating that python file now