This short guide covers common tasks for working on TrendSpire.
Run all tests with:
pytestPytest is listed in requirements.txt so it will be installed with the other dependencies.
The scraper configuration lives in src/config.json. You can edit this file directly or run the interactive setup wizard:
python scripts/setup_wizard.pyThe wizard also stores your OPENAI_API_KEY in .env.
After updating the config you can regenerate the digest with:
python -m src.render_digestThis will refresh TRENDING.md and inject the table into the README between the
<!-- TRENDING_START --> and <!-- TRENDING_END --> markers.
The automated self-improvement tools live in ai_loop/. Run the loop manually with:
python -m ai_loop.autoloopThe workflow .github/workflows/ai_loop.yml schedules runs on GitHub.