Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 616 Bytes

File metadata and controls

17 lines (11 loc) · 616 Bytes

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