Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,8 @@ dmypy.json
# OS
.DS_Store
Thumbs.db

# Scraper específico
ualg_courses.db
data/
*.db
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help install install-dev test lint format clean run
.PHONY: help install install-dev test lint format clean run run-scraper run-api init-db

help:
@echo "Available targets:"
Expand All @@ -8,7 +8,10 @@ help:
@echo " lint - Run linting with flake8"
@echo " format - Format code with black"
@echo " clean - Remove build artifacts and cache files"
@echo " run - Run the scraper"
@echo " run - Run the scraper (alias for run-scraper)"
@echo " run-scraper - Run the scraper"
@echo " run-api - Run the API server"
@echo " init-db - Initialize the database"

install:
pip install -r requirements.txt
Expand Down Expand Up @@ -36,4 +39,13 @@ clean:
find . -type d -name "htmlcov" -exec rm -rf {} +

run:
python -m src.scraper
python -m src.scrape_ualg

run-scraper:
python -m src.scrape_ualg

run-api:
uvicorn src.api:app --reload --host 0.0.0.0 --port 8000

init-db:
python -c "from src.scrape_ualg import UAlgCourseScraper; s = UAlgCourseScraper(); s.init_db()"
Loading