Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 1.82 KB

File metadata and controls

34 lines (17 loc) · 1.82 KB

The modernization of communication: how The Chinese Communist Youth League (CYL) try to talk to the younger generation by engaging popular culture Code Repository

src directory

Code in src directory is the source code to generate .xlsx, .json and .html file.

allToJson.py collect all video information of BiliBili user 共青团中央 and save to json file video.json through API

cleanJson.py clean json file, remove some useless information in json.

sampleJson.py sample json file video.json, sample 70 video information which uniform distributed on weekdays, 10 video each weekday. Save to sample.json.

jsonToXlsx.py get video information from json file sample.json and save to sample.xlsx, which contains image information.

jsonTohtml.py get video information from json file sample.json and save to sample.html, which contains image information.

assert directory

This directory contains all the files generated by the program, which are source file to analysis.

video.xlsx is all video information of BiliBili user 共青团中央 util 2022/03/22.

video.json is all video information of BiliBili user 共青团中央 util 2022/03/22.

coding_sheet.xlsx is video.xlsx after a few cleaning.

sample.json contains 70 sampled videos information from video.json.

sampleLite.json contains 70 sampled videos after remove useless information from video.json.

sample.xlsx contains 70 sampled videos information from video.xlsx.

sample.html contains 70 sampled videos information from video.json, images is a link of origin site (bilibili).