Scripts used for initializing the data for Hololive-Production-Livestream-Activity-Statistics.
Data was gathered using Holodex API with the holodex.js library.
Install libraries:
npm install
holodexVidIds.js
extracts all video ID's of a specific VTuber in its Holodex channel page. It is entered in the dev console where it loops with a delay to let all the links to render on each page, and extract them using the DOM API. The printed result is put in channel_vid_ids.json
.
holodexApiClient.js
queries the Holodex API through an array of ID's in channel_vid_ids.json
, and extracts the interested details in the response. Data is stored in an object and then saved into a JSON file named livestream_details.json
.