Skip to content

embium/reddit-analysis-python

Repository files navigation

A quick script that I whipped up to analyze Reddit posts using OpenRouter and HuggingFace models.

Be sure to set your environment variables in .env.example and rename it to .env before running the script.

Included a list of "all" (maybe some are missing) available subreddits.

Create postgresql database and enable vector extension, tables will be created automatically when running main.py

psql -U postgres -c "CREATE EXTENSION IF NOT EXISTS vector;"

Install dependencies

pip install -r requirements.txt

Run the script for scraping

python main.py

Run the script for analysis

python analyze.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages