From a8772c4633f30dad5185d99db36bdd3207c4ce2c Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 20 Nov 2023 17:31:50 -0500 Subject: [PATCH] more about the output --- hws/09_tiktok_trends/README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/hws/09_tiktok_trends/README.md b/hws/09_tiktok_trends/README.md index 235e814..d5dfb42 100644 --- a/hws/09_tiktok_trends/README.md +++ b/hws/09_tiktok_trends/README.md @@ -190,7 +190,27 @@ and you can visit this page via [https://www.tiktok.com/tag/cleantok](https://ww ## Output File Format -to be added. +1. when users run this command: + +```console +nytrends.exe input.json output.txt hashtag +``` + +your program should produce an output similar to what TikTok does: +![alt text](images/hashtags.png "Hashtags") + +this basically is the trending hashtags, each is associated with some videos. In your output, these videos should be sorted in a descending order, based on how many views the video has received. + +2. when users run this command: + +```console +nytrends.exe input.json output.txt sound +``` + +your program should produce an output similar to what TikTok does: +![alt text](images/sounds.png "sounds") + +this basically is the trending sounds, each is associated with some videos. In your output, these videos should be sorted in a descending order, based on how many views the video has received. ## Useful Code