Russell-Newton / TikTokPy

Extract data from TikTok without needing any login information or API keys.
https://pypi.org/project/tiktokapipy/
MIT License
192 stars 24 forks source link

Add tiktok url to the video object #54

Closed reddere closed 1 year ago

reddere commented 1 year ago

Is your feature request related to a problem? Please describe. Since we are not able to download the videos from this library, at least I want to use it to fetch the tiktok url of a user profile and then use a website to download that tiktok link.

Describe the solution you'd like For me, it would be useful to add some sort of "url" param to the user.videos.video

Describe alternatives you've considered Tried requesting url from the play_addr, but as mentioned in other issues, it's not possible to get that url

Russell-Newton commented 1 year ago

At the moment, you can use the video_link function in the tiktokapipy.models.video package with video.id to get the video link.

url = video_link(video.id)

I can make this into a computed field when I get the chance so you can just do video.url.

Russell-Newton commented 1 year ago

This feature has been implemented in version 0.2.1. You can access the video.url property to retrieve the link to the TikTok page.

reddere commented 1 year ago

Thanks! Have you investigated about downloading the videos from the play_addr field, by the way? @Russell-Newton

Russell-Newton commented 12 months ago

I have not yet made any progress for this.