Update README.md

This commit is contained in:
johannawild
2021-10-25 14:16:18 +02:00
committed by GitHub
parent 37998dd776
commit 8f9427a5f8

View File

@@ -10,9 +10,10 @@ The project provides tools to analyze hashtags based on data downloaded using ti
2. The command above 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
1. Use the following command: python3 extract_hashtag.py target_file.json n
2. The command above will plot top **n** hashtag frequencies based on the json file downloaded using tiktok scraper for a given hashtag. Recommendation n < = 10 for easy to read and analyze.
1. Use the following command to print the result on the screen: python3 extract_hashtag.py target_file.json n -d
2. Use the following command to plot: python3 extract_hashtag.py target_file.json n -p
3. The command above will plot top **n** hashtag frequencies based on the json file downloaded using tiktok scraper for a given hashtag. Recommendation n < = 10 for easy to read and analyze.
## extract_posts.py
1. Use the following command: python3 extract_posts.py target_file.json hashtag_name
2. The command above pulls out all the posts for the hashtag hashtag_name from the downloaded tiktok scraper data.
1. Use the following command: python3 extract_posts.py target_file.json hashtag_names
2. The command above pulls out all the posts for the hashtag hashtag_names (enter multiple names with space) from the downloaded tiktok scraper data.