Skip to content

A Selenium based version of the Unofficial TikTok API Wrapper In Python

License

Notifications You must be signed in to change notification settings

networkdynamics/TikTok-Api

 
 

Repository files navigation

Unofficial TikTok API in Python

This is a Selenium based version of David Teacher's unofficial api wrapper for TikTok.com in python. It re-implements a currently limited set of the features of the original library, with a shifted focus on using browser automation to allow manual captcha solves with a hopefully minor trade-off in performance.

It's currently in a messy half way point up being gutted and having its innards replaced so use with caution!

Quick Start Guide

Here's a quick bit of code to get the most recent trending videos on TikTok. There's more examples in the examples directory.

from TikTokApi import TikTokApi

# Watch https://www.youtube.com/watch?v=-uCt1x8kINQ for a brief setup tutorial
with TikTokApi() as api:
    for video in api.hashtag(name=hashtag).videos(count=100):
        # print the info of the top 100 videos for this hashtag
        print(video.info())

About

A Selenium based version of the Unofficial TikTok API Wrapper In Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%