Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (32 loc) · 1.97 KB

tbn2109.md

File metadata and controls

45 lines (32 loc) · 1.97 KB

Personal Website

Final Evaluation

Releases

pytik

License GitHub Workflow Status (branch) Codecov Docs PyPI Code style: black

pytik is a lightweight, dependency-free Python library for fetching data from TikTok.

Idea

TikTok does not provide a developer-facing API whatsoever. pytik seeks to address this shortcoming. pytik is a lightweight, dependency-free Python library for getting data from any particular TikTok video (think of metadata, such as the author of the video and what the song is). pytik aims to be highly reliable, secure, and fast, all the while depending on no third party dependencies.

One use case of pytik is for data harvesting, where you are able to generate very large datasets using data fetched using pytik. Another use case would be for content creators, where they would eventually be able to see what kind of content/hashtag is trending.

Installation

$ pip install pytik

Getting Started

pytik exposes a TikTok class, enabling you to request specific attributes from a TikTok video.

 >>> from pytik import TikTok
 >>> tk = TikTok('https://www.tiktok.com/@tiktok/video/6881450806688664838')
 >>> tk.description()
 "Good vibes only 🤙 @420doggface208 @mickfleetwood @tomhayes603"
 >>> tk.user()
 "tiktok"
 >>> tk.song()
 "original sound"
 >>> tk.song_author() 
 "TikTok"