diff options
| author | yyamashita <yyamashita@mosquit.one> | 2026-05-06 22:20:00 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@mosquit.one> | 2026-05-06 22:20:00 +0900 |
| commit | f817604858891edb79e26459dae884b158774db1 (patch) | |
| tree | 7a4cc1cd7f1091d2eece430e5d5de7d02d987669 /app/scrapers/flat-nishiogikubo.ts | |
| parent | 079176fae1d513d68b53c57274f3ae2864f352fc (diff) | |
Add 4 new venue scrapers: Meets 大塚, WARP 吉祥寺, FLAT 西荻窪, Pitbar 西荻窪
meets-otsuka: rinky.info プラットフォーム。div.blog-entry.event-wrap[event-date]
から日付・タイトル・出演者・時間・価格・チケットURLを取得。
warp-kichijoji: WordPress カスタムテーマ。<h3>YYYY<br/><span>MM</span></h3> で
年月を取得、article.schedules-box から各イベントをパース。
flat-nishiogikubo: Wix サイトのため JS レンダリング必須。エラーを返す
プレースホルダー実装(Playwright 等への移行が必要)。
pitbar-nishiogikubo: freecalend.com (mem25771) から取得を試みるが、
ボット遮断のため現状はエラー。URL パターン・代替策をコメントに記載。
SCRAPE_TARGETS.md に状態列(✅/⚠️)を追加。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app/scrapers/flat-nishiogikubo.ts')
| -rw-r--r-- | app/scrapers/flat-nishiogikubo.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/scrapers/flat-nishiogikubo.ts b/app/scrapers/flat-nishiogikubo.ts new file mode 100644 index 0000000..03cc70c --- /dev/null +++ b/app/scrapers/flat-nishiogikubo.ts @@ -0,0 +1,33 @@ +/** + * FLAT 西荻窪 — https://www.flat.rinky.info/schedule + * + * ⚠️ Wix サイトのためクライアントサイド JS レンダリング。 + * 静的 fetch ではイベントデータを取得できない。 + * + * 代替案: + * - Playwright/Puppeteer でヘッドレスブラウザを使用 + * - Wix Events API (要サイトオーナーによる API キー発行) + * + * 現在は空配列を返す(エラーにはしない)。 + */ +import type { Scraper, VenueMeta } from "./base"; +import type { EventInput } from "~/lib/db.server"; + +export const venue: VenueMeta = { + id: "flat-nishiogikubo", + name: "FLAT 西荻窪", + url: "https://www.flat.rinky.info", + area: "西荻窪", +}; + +export const scraper: Scraper = { + venue, + async scrape(): Promise<EventInput[]> { + // Wix renders events with JavaScript; static fetch returns an empty calendar. + // TODO: Replace with a headless browser implementation (e.g. Playwright). + throw new Error( + "FLAT 西荻窪 は Wix サイトのため JS レンダリングが必要です。" + + "ヘッドレスブラウザ(Playwright 等)への移行が必要です。" + ); + }, +}; |
