Skip to content

mimikri/youtube-bullshitometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Analysis Tool


This is a PHP-based tool for analyzing and evaluating the credibility of YouTube video content. The application transcribes videos, analyzes the transcript using AI models, and provides metrics on the validity, bullshit percentage, and overall quality of the content.

## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Database Schema](#database-schema)

## Features

- Transcribe YouTube videos to text using Whisper model.
- Analyze transcripts with AI language models from LM Studio or OpenRouter API.
- Generate credibility metrics for video content:
- Bullshitometer: % of questionable claims
- Validometer: % of verifiable statements
- Niveau: Quality and depth of arguments
- Display analysis results in a user-friendly dashboard
- Save analyzed videos with their transcripts and evaluations to a database

## Installation

1. Clone the repository:
```
git clone https://github.com/mimikri/youtube-bullshitometer.git
cd youtube-bullshitometer
```

2. Install necessary dependencies:

- PHP >= 8.x
- Composer for PHP packages
- MySQL/MariaDB database server
- FFmpeg and yt-dlp installed on the system

3. Set up the database:
```
mysql -u root -p < db.sql
```

4. Configure your settings by copying `config/sample.config.php` to `config/config.php` and filling in the required information.

5. Ensure that you have a local instance of LM Studio running, or obtain an API key for OpenRouter.

## Usage

1. Start PHP's built-in server:
```
php -S localhost:8000
```

2. Navigate to `http://localhost:8000` in your web browser.

3. Enter a YouTube video URL, select analysis provider and model, then submit the form.

4. The application will process the video, analyze it, and display results once complete.

5. Use localhost:8000/overview.php to see all saved results.

## Configuration

The main configuration file is located at `/config/config.php`. It contains constants for:

- `OPENROUTER_API_KEY`: Your API key from OpenRouter
- `LM_STUDIO_ENDPOINT`: URL to your local LM Studio server
- Database connection details: DB_HOST, DB_NAME, DB_USER, and DB_PASS



### Video Table

Run db.sql in your mysql database to create the db wich saves results.



## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License
This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published