Initial commit as old code is deprecated because urls now require anti-spam parameters and signatures.
git clone https://github.com/dobizz/TikTok.git
cd TikTok
pip3 install -r requirements.txt
Execute run.py, chromedriver will be automatically downloaded. Downloaded video files will be placed in ./videos/[username]
python3 run.py
Learn more about Selenium here https://pypi.org/project/selenium/
pip3 install selenium
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.
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
def getAllowedAgents() -> list():
pass
- 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
- 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
Find my code helpful? Some Satoshis would be nice. Thanks :)
1zdraxHPQfZ8wvpMXt2VYhnGwmkLCf7UL