Download public videos on TikTok using Python with Selenium
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
Find my code helpful? Some Satoshis would be nice. Thanks :)