Search & download Tiktok videos by username and/or video tag, and analyze video contents. Transcribe video speech to text and perform NLP analysis tasks (e.g., keyword and topic discovery; emotion/sentiment analysis). Isolate audio signal and perform signal processing analysis tasks (e.g., pitch, prosody and sentiment analysis). Isolate visual stream and perform image tasks (e.g., object detection; face detection).
- Clone or download .zip of
tiktok-analyzer
python package.
git clone https://github.com/kariemoorman/tiktok-analyzer.git
- Create a virtual environment inside the
tiktok-analyzer
directory.
cd tiktok-analyzer && python3 -m venv .venv
- Activate virtual environment.
source .venv/bin/activate
- Install package dependencies.
pip install -r requirements.txt
- Execute
tiktok-analyzer
program.
python src/tiktok-analyzer.py
- Clone or download .zip of
tiktok-analyzer
python package.
git clone https://github.com/kariemoorman/tiktok-analyzer.git
- Build Docker image.
docker build -t tt-analyzer .
- Run Docker image as container.
docker run --rm -ti tt-analyzer
- Input URL: https://www.tiktok.com/@bytesiz3/video/7290398845777825070
- Output:
- Input MP4: ssstik.io_1698796057176.mp4
- Output:
- Input MP4: ssstik.io_1698796057176.mp4
- Output:
- Face Detection:
- MP4: ssstik.io_1698796057176.mp4.cv_output.mp4
- Faces Directory: ssstik.io_1698796057176_faces/
- NLP:
- Sentiment analysis: ssstik.io_1698796057176.sentiment_analysis.txt
- Face Detection:
-
TikTok Video Scrapers
-
tiktok_user_video_scraper.py
Choose either Selenium or Pyppeteer to dynamically scrape TikTok videos for one or more Tiktok usernames.
E.g.,python3 tiktok_user_video_scraper.py <username> <username> -b pyppeteer -o csv
-
tiktok_tag_video_scraper.py Choose either Selenium or Pyppeteer to dynamically scrape TikTok videos for one or more Tiktok tags.
E.g.,python3 tiktok_tag_video_scraper.py physics lhc -b pyppeteer -o csv
-
tiktok_video_metadata_scraper.py Export metadata from a Tiktok video.
E.g.,python3 tiktok_video_metadata_scraper.py <tiktok_video_url>
-
-
TikTok Video Downloader
- tiktok_downloader.py
Choose either Selenium or Pyppeteer to dynamically download one or more Tiktok videos.
E.g.,python3 tiktok_downloader.py <tiktok_video_url> -b selenium -d firefox
- tiktok_downloader.py
Choose either Selenium or Pyppeteer to dynamically download one or more Tiktok videos.
-
TikTok Video Speech Transcriber
- tiktok_video_to_text.py
Choose either Google or OpenAI ASR model to transcribe Tiktok video (in mp4 format).
E.g.,python3 tiktok_video_to_text.py <path/to/video_filename.mp4> -m openai
- tiktok_video_to_text.py
-
TikTok Video Face Detection
- face_detection.py
Conduct face detection task on Tiktok video (in mp4 format).
E.g.,python3 face_detection.py <video.mp4> -o 'output/file/path'
- face_detection.py
-
TikTok Sentiment Analysis
- sentiment_analysis.py
Conduct sentiment analysis tasks on Tiktok video transcription data.
E.g.,python3 sentiment_analysis.py -t <document> -f 'output/file/path/filename.mp4/json'
- sentiment_analysis.py
License: GNU General Public License v3.0