Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
/ pytik Public archive

Lightweight, dependency-free Python library for fetching data from TikTok

License

Notifications You must be signed in to change notification settings

tbngo/pytik

Repository files navigation

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.

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"