All Projects → dobizz → TikTok

dobizz / TikTok

Licence: MIT license
Download public videos on TikTok using Python with Selenium

Programming Languages

python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to TikTok

yt-videos-list
Create and **automatically** update a list of all videos on a YouTube channel (in txt/csv/md form) via YouTube bot with end-to-end web scraping - no API tokens required. Multi-threaded support for YouTube videos list updates.
Stars: ✭ 64 (+72.97%)
Mutual labels:  scraper, selenium, chromedriver
Sillynium
Automate the creation of Python Selenium Scripts by drawing coloured boxes on webpage elements
Stars: ✭ 100 (+170.27%)
Mutual labels:  scraper, selenium, chromedriver
Zillow
Zillow Scraper for Python using Selenium
Stars: ✭ 141 (+281.08%)
Mutual labels:  scraper, selenium, chromedriver
pinterest-web-scraper
Scraping Visually Similar Images from Pinterest
Stars: ✭ 26 (-29.73%)
Mutual labels:  scraper, selenium
jest-selenium
This project shows how to drive your selenium tests with Jest.
Stars: ✭ 22 (-40.54%)
Mutual labels:  selenium, chromedriver
tiktok-downloader
Download TikTok Video Watermark
Stars: ✭ 20 (-45.95%)
Mutual labels:  tiktok, tiktok-api
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 (+2.7%)
Mutual labels:  tiktok, tiktok-api
4scanner
Continuously search imageboards threads for images/webms and download them
Stars: ✭ 103 (+178.38%)
Mutual labels:  scraper, downloader
saveddit
Bulk Downloader for Reddit
Stars: ✭ 130 (+251.35%)
Mutual labels:  scraper, downloader
TikTokDownloader PyWebIO
🚀「Douyin_TikTok_Download_API」是一个开箱即用的高性能异步抖音|TikTok数据爬取工具,支持API调用,在线批量解析及下载。
Stars: ✭ 919 (+2383.78%)
Mutual labels:  scraper, tiktok
OnlyFans
Scrape all the media from an OnlyFans account - Updated regularly
Stars: ✭ 573 (+1448.65%)
Mutual labels:  scraper, downloader
fansly
Simply scrape / download all the media from an fansly account
Stars: ✭ 351 (+848.65%)
Mutual labels:  scraper, downloader
TikTokTool
TikTok trend analysis tool
Stars: ✭ 31 (-16.22%)
Mutual labels:  tiktok, tiktok-api
Fifa21-Autobidder
Selenium-based bot that autobids and autobuys players on FIFA 23 Ultimate Team's transfer market
Stars: ✭ 106 (+186.49%)
Mutual labels:  selenium, chromedriver
Website-downloader
💡 Download the complete source code of any website (including all assets). [ Javascripts, Stylesheets, Images ] using Node.js
Stars: ✭ 615 (+1562.16%)
Mutual labels:  scraper, downloader
vsco-scraper
Easily allows for scraping a VSCO
Stars: ✭ 106 (+186.49%)
Mutual labels:  scraper, downloader
TinderBotz
Automated Tinder bot and scraper using selenium in python.
Stars: ✭ 265 (+616.22%)
Mutual labels:  scraper, selenium
chameleon-crawler
Browser automation for Chameleon.
Stars: ✭ 17 (-54.05%)
Mutual labels:  selenium, chromedriver
lux
👾 Fast and simple video download library and CLI tool written in Go
Stars: ✭ 19,266 (+51970.27%)
Mutual labels:  scraper, downloader
Scrape Linkedin Selenium
`scrape_linkedin` is a python package that allows you to scrape personal LinkedIn profiles & company pages - turning the data into structured json.
Stars: ✭ 239 (+545.95%)
Mutual labels:  scraper, selenium

TikTok API Reverse Engineering

Initial commit as old code is deprecated because urls now require anti-spam parameters and signatures.

Instructions

How to install

git clone https://github.com/dobizz/TikTok.git
cd TikTok
pip3 install -r requirements.txt

How to run

Execute run.py, chromedriver will be automatically downloaded. Downloaded video files will be placed in ./videos/[username]

python3 run.py

Requirements

Selenium

Learn more about Selenium here https://pypi.org/project/selenium/

pip3 install selenium

Chrome Driver

Download ChromeDriver here https://chromedriver.chromium.org/downloads

You will need to redownload ChromeDriver if your installed version of chrome is newer than the provided version.

Code Structure

api.py

class TikTok:
    def __init__(self, path: str):
        pass
        
    def _signURL(self, url) -> str:
        pass
        
    def getUserDetails(self, username) -> dict():
        pass
    
    def getTrending(self, count: int) -> list(): 
        pass
        
    def getUserTikToks(self, userid, count: int) -> list():
        pass

robots.py

def getAllowedAgents() -> list():
    pass

Work In Progress

Features

  • Integrate Selenium/Chrome Webdriver
  • Partial concurrency
  • Function: _signURL(url:str) -> str
  • Function: getUserDetails(username:str) -> dict()
  • Function: getTrending(count: int) -> list(dict())
  • Function: getUserTiktoks(id:int, count:int) -> list(dict())
  • Complete all API functions
  • Add rotating proxies
  • Profile crawler
  • Trend crawler
  • Full concurrency

Files

  • api.py - TikTok API
  • robots.py - Reads User-Agents from https://www.tiktok.com/robots.txt
  • run.py
  • utils.py - Utilities for downloading and updating ChromeDriver
  • proxies.py - Module for proxies and IP addresses

Donate BTC

Find my code helpful? Some Satoshis would be nice. Thanks :)

1zdraxHPQfZ8wvpMXt2VYhnGwmkLCf7UL
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].