尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗FPS24 aggregates showtimes from Madrid's independent, arthouse, and original-language (VOSE) cinemas — Doré, Cineteca, Sala Equis, the Renoir chain, Verdi, Golem, Embajadores, MK2 Palacio de Hielo, Cine Paz, Yelmo Ideal, Cinesa, and more — into a single, searchable listing, with movie data automatically enriched via TMDB.
🔗 Live site: fps24.es
flowchart LR
subgraph Sources["🎥 Cinema Websites"]
direction TB
C1[Doré]
C2[Cineteca]
C3[Renoir · Verdi · Golem]
C4[Yelmo · Cinesa · MK2 ...]
end
subgraph Scraping["🕷️ Scraping Layer"]
direction TB
SC["Playwright scrapers\none per cinema"]
GP["gestor_peliculas.py\nfuzzy match + dedup"]
TMDB[("TMDB API\nposter · synopsis · rating")]
SC --> GP
GP <-.enrich.-> TMDB
end
subgraph Infra["☁️ Backend — Render"]
direction TB
CRON["⏰ Cron Job\ndaily 08:00 UTC\npython -m app.run_scrapers"]
API["🚀 FastAPI\nmain.py"]
CRON --> SC
API -- "POST /actualizar\n(secret-protected)" --> SC
end
DB[("🐘 Supabase\nPostgreSQL")]
GP --> DB
API <--> DB
subgraph Frontend["▲ Vercel"]
FE["Next.js App\nfetch + client-side filtering"]
end
Sources --> SC
API -- "GET /pases" --> FE
FE --> Users(("👤 Users"))
style Infra fill:#1a1a2e,stroke:#e94560,color:#fff
style Frontend fill:#0f3460,stroke:#16213e,color:#fff
style DB fill:#16213e,stroke:#e94560,color:#fff
style Scraping fill:#1a1a2e,stroke:#0f3460,color:#fff
run_scrapers.py.gestor_peliculas.py resolves whether a movie already exists via exact match + fuzzy matching (thefuzz) before creating a new entry or querying TMDB.python -m app.run_scrapers daily, executing the full scraping pipeline.main) + Render (backend + cron job).fps24/
├── backend/
│ ├── app/
│ │ ├── core/
│ │ ├── database/
│ │ │ ├── engine.py # DB connection (Supabase / local SQLite fallback)
│ │ │ └── models.py # SQLModel models: Pelicula, Pase
│ │ ├── scrapers/
│ │ │ └── cines/ # One Playwright scraper per cinema
│ │ ├── services/
│ │ │ ├── gestor_peliculas.py # Dedup + TMDB resolution
│ │ │ └── tmdb.py # TMDB API client
│ │ ├── run_scrapers.py # Orchestrator: runs all scrapers (or --solo a,b)
│ │ └── main.py # FastAPI app and endpoints
│ ├── ver_db.py # Local inspection utility
│ ├── database.db # Local SQLite (tests only, never used in production)
│ └── requirements.txt
└── frontend/
└── src/
├── app/
│ ├── page.js # Main page: fetch, filters, grouping
│ ├── layout.js # Root layout, fonts, Google Analytics
│ ├── cines/
│ └── pelicula/
├── components/
├── lib/
└── utils/
app/scrapers/cines/ visits a cinema's website with Playwright and extracts title, showtimes, language (VOSE/dubbed), and booking link.gestor_peliculas.obtener_id_pelicula():
Pelicula with the returned metadata.determinar_si_es_especial() flags a showing as "special" if the title contains keywords (cycles, marathons, revivals) or if the movie predates 2023.Pase (showing) is saved with deduplication by cinema + movie + datetime.GET /pases returns all showings with their associated movie (selectinload), consumed by the frontend.The full pipeline (lanzar_todo() in run_scrapers.py) updates the database incrementally: each showing seen is created or refreshed, and at the end of each cinema's run the showings that were not seen are marked inactive (unless fewer than half of its future showings were seen, which points to a broken scraper). It's triggered through two equivalent paths that call the exact same function:
| Trigger | Description |
|---|---|
| Cron (Render) | Scheduled job running python -m app.run_scrapers directly, daily at 08:00 UTC. Doesn't go through HTTP. |
| HTTP endpoint | POST /actualizar, protected with an X-Actualizar-Secret header. Meant for manual triggering (not used by the cron). Runs as a background task. |
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium
# .env
# DATABASE_URL=postgresql://... (omit to fall back to local SQLite)
uvicorn main:app --reload
Without DATABASE_URL set, the backend automatically falls back to sqlite:///database.db — it never points at production by default.
cd frontend
npm install
# .env.local
# NEXT_PUBLIC_API_URL=http://localhost:8000
npm run dev
cd backend
python -m app.run_scrapers
.env)| Variable | Description |
|---|---|
DATABASE_URL | Supabase (Postgres) connection string. Falls back to local SQLite if unset. |
ACTUALIZAR_SECRET | Secret required in the X-Actualizar-Secret header to call POST /actualizar. |
.env.local)| Variable | Description |
|---|---|
NEXT_PUBLIC_API_URL | Base URL of the FastAPI backend. Falls back to http://localhost:8000 if unset. |
except blocks, to catch individual failures without losing resilience.*./test/* endpoints.Personal project — no public license defined.