尚未检测到更新。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.