All Projects → avilash → TikTokAPI-Python

avilash / TikTokAPI-Python

Licence: MIT license
TikTok API Python Wrapper

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to TikTokAPI-Python

tiktik
📱🥴 TikTok terminal client for browsing & downloading videos
Stars: ✭ 68 (-76.14%)
Mutual labels:  tiktok, tiktok-scraper, tiktok-api, tiktokapi, tiktok-downloader
TikTokTool
TikTok trend analysis tool
Stars: ✭ 31 (-89.12%)
Mutual labels:  tiktok, tiktok-scraper, tiktok-api, tiktok-bot, tiktok-python
tiktok-downloader
Download TikTok Video Watermark
Stars: ✭ 20 (-92.98%)
Mutual labels:  tiktok, tiktok-scraper, tiktok-api, tiktok-downloader
Tiktok-API-Python
TIKTOK API IN PYTHON , GET TRENDING VIDEO, GET VIDEO BY CHALLENGE, GET VIDEO BY MUSIC, GET VIDEO BY USER, DOWNLOAD VIDEO NO WATERMARK
Stars: ✭ 70 (-75.44%)
Mutual labels:  tiktok, tiktok-scraper, tiktok-api, tiktok-python
TikTokBot
Bot save videos from instagram and then post them to Tik-Tok
Stars: ✭ 21 (-92.63%)
Mutual labels:  tiktok, tiktok-scraper, tiktok-downloader
tiktok-scraper-php
Tiktok (Musically) PHP scraper
Stars: ✭ 65 (-77.19%)
Mutual labels:  musically, tiktok, tiktok-scraper
TikTok-FLP
Tik Tok FLP is a Perfect CPA landing page coded in HTML, PHP, JS, and CSS, provided free of charge by Re-skinning Group
Stars: ✭ 37 (-87.02%)
Mutual labels:  tiktok, tiktok-scraper
tiktok-autoviews
Get unlimited Tik Tok views.
Stars: ✭ 90 (-68.42%)
Mutual labels:  tiktok, tiktok-bot
django tiktok downloader
A Django-based TikTok Downloader. Download video without a watermark.
Stars: ✭ 50 (-82.46%)
Mutual labels:  tiktok, tiktok-downloader
ProxiTok
Open source alternative frontend for TikTok made using PHP
Stars: ✭ 256 (-10.18%)
Mutual labels:  tiktok, tiktok-scraper
social-post-api
Social Media API: Automate Posting and Analytics to Social Networks like Instagram, TikTok, Twitter, Facebook, LinkedIn, Reddit, YouTube, and Telegram
Stars: ✭ 38 (-86.67%)
Mutual labels:  tiktok, tiktok-api
tiktok-dl
Free TikTok Video Downloader | Watermark and Without Watermark Support
Stars: ✭ 68 (-76.14%)
Mutual labels:  tiktok, tiktok-downloader
tiktok-gorgon-bridge
Express server with a Frida bridge to sign TikTok API requests
Stars: ✭ 83 (-70.88%)
Mutual labels:  tiktok, tiktok-api
TikTok-Video-Downloader-PHP
A simple but effective one page TikTok video downloader(watermark free) script developed by Tufayel
Stars: ✭ 214 (-24.91%)
Mutual labels:  tiktok, tiktok-downloader
TikTok
Download public videos on TikTok using Python with Selenium
Stars: ✭ 37 (-87.02%)
Mutual labels:  tiktok, tiktok-api
TimeView
时间罗盘,已经可以看到效果了
Stars: ✭ 32 (-88.77%)
Mutual labels:  tiktok
douyin2youtube
Download hot video from douyin and upload the video to Youtube automatic.
Stars: ✭ 28 (-90.18%)
Mutual labels:  tiktok
ByteDanceOpen
Bytedance(TikTok, Toutiao)third party open platform backend SDK, provides easy-to-use authorization, template management, code package management and other APIs.字节跳动(抖音, 头条)第三方开放平台小程序sdk, 提供了简单易用的授权,模版管理,代码包管理等api.
Stars: ✭ 67 (-76.49%)
Mutual labels:  tiktok
tiktok-download-userscript
Browser userscripts to download TikTok videos without watermark and get livestream URLs (to play in VLC).
Stars: ✭ 42 (-85.26%)
Mutual labels:  tiktok
TikTokForWindows
This is an attempt to make a desktop software for TikTok
Stars: ✭ 19 (-93.33%)
Mutual labels:  tiktok

Unofficial TikTok API Wrapper in Python

This is an unofficial TikTok Api python wrapper. I have an App using this API, and thus will constantly keep updating this wrapper
This implementation is inspired by TikTokApi, but runs faster.

Table of Contents

Getting Started

To get started using this API, follow the instructions below.

Installing

Pip

pip install PyTikTokAPI

Install from source

git clone https://github.com/avilash/TikTokAPI-Python.git
python setup.py install

Quick Start Guide

Import

from TikTokAPI import TikTokAPI

Get your keys from Cookie. You can get them from the Applications tab in Chrome developer console.
By default it used hardcoded values which may not work after some time.
The keys to extract are s_v_web_id and tt_webid

cookie = {
  "s_v_web_id": "<your_key>",
  "tt_webid": "<your_key>"
}

Get the most trending Videos on TikTok

api = TikTokAPI(cookie=cookie)
retval = api.getTrending(count=5)

Get a user by name

api = TikTokAPI(cookie=cookie)
user_obj = api.getUserByName("fcbarcelona")

Get videos of a user

api = TikTokAPI(cookie=cookie)
user_videos = api.getVideosByUserName("fcbarcelona")

Get likes of a user

api = TikTokAPI(cookie=cookie)
user_videos = api.getLikesByUserName("fcbarcelona")

Detailed Documentation

This section contains details about the parameters of each function and what it returns

Methods

Tiktok Class

Inputs

  • language - Self explanatory
  • region - Self explanatory
  • cookie - The TikTok Cookie containing the parameter s_v_web_id. If not provided, the parameter will be generated.
__init__(self, language='en', region='IN', cookie=None)

Get Trending Videos

Inputs

  • count - Number of videos to fetch
getTrending(self, count=30)

Get User

Inputs

  • user_name - Username, eg - fcbarcelona
getUserByName(self, user_name)

Get Videos By Username

Inputs

  • user_name - Username, eg - fcbarcelona
  • count - Number of videos to fetch
getVideosByUserName(self, user_name, count=30)

Get Likes By Username

Inputs

  • user_name - Username, eg - fcbarcelona
  • count - Number of videos to fetch
getLikesByUserName(self, user_name, count=30)

Get Hashtag

Inputs

  • hashTag - HashTag, eg - #fcbarcelona
getHashTag(self, hashTag)

Get Videos By Hashtag

Inputs

  • hashTag - HashTag, eg - #fcbarcelona
  • count - Number of videos to fetch
getVideosByHashTag(self, hashTag, count=30)

Get Music

Inputs

  • music_id - Music Id, eg - 6704854531001289474
getMusic(self, music_id)

Get Videos By Music

Inputs

  • music_id - Music Id, eg - 6704854531001289474
  • count - Number of videos to fetch
getVideosByMusic(self, music_id, count=30)

Get Video By Id

Inputs

  • video_id - Video Id, eg - 6843481669886954757
getVideoById(self, video_id)

Download Video

Inputs

  • video_id - Video Id, eg - 6843481669886954757
  • save_path - Path where the downloaded video should be saved
downloadVideoById(self, video_id, save_path)

Download Video No Watermark

Inputs

  • video_id - Video Id, eg - 6843481669886954757
  • save_path - Path where the downloaded video should be saved
downloadVideoByIdNoWatermark(self, video_id, save_path)

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Run on Repl.it

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].