openjutsu
영상에서 원클릭으로 인물 교체, ComfyUI·MiniMax H3 기반 오픈소스 로컬 힉스필드 겐주츠 대안, FLUX.3 Klein 재조명 지원
마드리드 독립·예술 영화관 모든 상영 일정, 원본 버전, 가격, 관람일을 한눈에
Todas las sesiones de los cines independientes y de autor de Madrid en una cartelera: horarios, versión original, precios y día del espectador.
미디어HTML · PythonGitHub @ignacioodiez온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 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.