Skip to content

leoli51/youtube-conspiracy-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evaluating AI capabilities in detecting conspiracy theories on YouTube

Installation

  1. Install poetry
  2. Clone this repository
  3. Run poetry install
  4. 🎉

Running code with Google APIs

To use the google API's you need to authenticate with credentials. There are multiple way of doing it. Personally I used the gcloud CLI that provides credentials to applications when running locally. The advantage of this is that you don't need to setup, download, and manage API keys. To setup authentication through the Gcloud CLI follow these steps:

  1. Install Gcloud CLI, instructions here.
  2. Setup a project in the google cloud platform.
  3. Activate Youtube's API for the project.
  4. Set the project as your current project in the Gcloud CLI with gcloud config set project <project-id>
  5. Authenticate with gcloud auth application-default login --scopes=openid,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/youtube.

Note: if you will need other authentication scopes you will have to add them in the --scopes list and reauthenticate.

Note: This took a while to figure out, thank you!

About

Code for the paper "Evaluating AI capabilities in detecting conspiracy theories on YouTube".

Topics

Resources

Stars

Watchers

Forks

Languages