2022-02-25 19:33:09 +01:00
2022-02-25 16:55:02 +01:00
2022-02-25 16:55:02 +01:00
2022-02-25 17:08:54 +01:00
2022-02-25 17:08:54 +01:00
2022-02-25 19:33:09 +01:00

TikTok hashtag analysis toolset

The tool helps to download posts and videos from tiktok for a given set of hashtags. It uses tiktok-scraper (https://github.com/drawrowfly/tiktok-scraper) to download the posts and videos.

Pre-requisites

  1. Make sure you have python 3.8 or later version installed.
  2. Download and install TikTok scraper: https://github.com/drawrowfly/tiktok-scraper

Options for running run_downloader.py

Screenshot 2022-02-25 at 19 04 26

Data organization

Screenshot 2022-02-25 at 19 21 44

data folder contains all the downloaded data as shown in the pic above.

  1. the log folder contains log.json which records the total number of downloaded posts and videos for the hashtags against the time stamp of when the script is run.
  2. the ids folder contains two files post_ids.json and video_ids.json that records the ids of the downloaded posts and videos for each hashtag.
  3. Each hashtag has a folder with two subfolders posts and videos that store posts and videos respectively. The posts are stored in the data.json file in the posts folder, and videos are stored as the .mp4 files in the videos folder.
Screenshot 2022-02-25 at 19 14 06

Post download example

Run the run_downloader.py with the following option: python3 run_downloader.py --h london paris newyork -p

Description
Provides tools to analyze hashtags within posts scraped from TikTok.
Readme MIT 290 KiB
Languages
Python 97%
Shell 2.1%
Dockerfile 0.9%