mirror of
https://github.com/bellingcat/tiktok-hashtag-analysis.git
synced 2026-06-11 21:08:31 +03:00
30f9bd9b2776d04af6118bd0f0a7b99b98519cba
tiktok hashtag analysis toolset
The project provides tools to analyze hashtags within posts scraped from TikTok.
extract_date.py
- Download and install TikTok scraper: https://github.com/drawrowfly/tiktok-scraper
- Use the following command: python3 extract_date.py target_file.json hashtag
The command in point 2 uses the extract_date.py script to extract the dates and the corresponding number of hashtag posts for each date that the TikTok scraper retrieves in the .json file.
extract_hashtag.py
- Use the following command: python3 extract_hashtag.py target_file.json n
- It will plot top n hashtag frequencies. Recommendation n < = 10 for easy to read and analyze.
extract_posts.py
- Use the following command: python3 extract_posts.py target_file.json hashtag
Languages
Python
97%
Shell
2.1%
Dockerfile
0.9%