A node.js app designed to collect and process the captions and the dislikes & likes of a video.
-
Clone the repo.
-
Run
npm i. -
Sign up for a Google Cloud account.
-
Create a service account.
-
Get the secrets as a .json file and save it to the root of the repo.
-
You can either
a. Create an .env file:
SECRET_FILE=<name of your services account file here with .json>
#EXAMPLE SECRET_FILE="service_account.json"
b. Rename your file from step 4 to
service_account.json. -
Create a folder to store your caption information. (See below folder as an example.)
a. For optimal results with the sister repo, format your folders like below:
/PARENT_FOLDER/ TRANSCRIPTS/ JSON/ TEXT/ youtube_vids.json TranscriptCollect/ TranscriptNLP/ -
Create a file named
youtube_vids.jsoninside the folder you created in step 6 and put all of your videos you'd like to capture information about. Be sure to follow the same structure as the example file. -
Run
npm run start.