Russell-Newton / TikTokPy

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

Cannot get createTime of the video #10

Closed DarinKumarnsit closed 1 year ago

DarinKumarnsit commented 1 year ago

I use def get_challenge_videos_scroll_down() challenge by tag_name and can not get createTime of the video

output : image

Russell-Newton commented 1 year ago

I had commented create_time out of the models.video.Video Pydantic model. I'll work on getting this feature in ASAP.

DarinKumarnsit commented 1 year ago

I see. Thank you so much!

Russell-Newton commented 1 year ago

Implemented in v0.1.8.

Included create_time in models.video.Video as a datetime object. This is also included in the data stored in the videos iterator of models.user.User and models.challenge.Challenge objects, so it can be used to sort this iterator with the sorted_by() method (see Example).