Closed Lem0nTree closed 5 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.54. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Unfortunately with the new api to download a video you have to two it in two different "stages"
for tiktok in trending:
videoURL = tiktok["link"]
data = get_Video_By_Url(videoURL, return_bytes=1)
with open("downloads/download.mp4", "rb") as downloadedObject:
downloadedObject.write(data)
Describe the bug
In the previous version of this API i use the following code to create an array with all the urls
The buggy code
Expected behavior
Download the videos from a target hashtag
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Here the error in the console
I think this error is due to the different json structure, I tried to use the new one but didn't succeed