Skip to content

2ch・5chのHTMLをdatに変換するCloudflare Workersアプリ/Convert 2ch (5ch) HTML to dat file on Cloudflare Workers.

License

Notifications You must be signed in to change notification settings

shinosaki/2ch-api-worker

Repository files navigation

2ch-api-worker

2ch-api-workerは2ちゃんねる(5ちゃんねる)のHTMLをdat形式に変換するCloudflare Workersアプリケーションです。

ToDo

  • linkedomからHTMLRewriterに移行
  • サーバー移転の追従

使用方法

2chのURL(https://greta.5ch.net/test/read.cgi/poverty/1653843928/)のドメイン名部分(greta.5ch.net)をWorkerのドメイン名(<HostName>)に置き換えてアクセスするだけです。

下記のいずれか(read.cgi or dat)のURL形式に対応してます。

  • https://<HostName>/test/read.cgi/<板/board>/<スレッドID/Thread ID>
  • https://<HostName>/<板/board>/dat/<スレッドID/Thread ID>.dat

応答はShift-JISでエンコードされた2chのdatです。

URL末尾にクエリパラメータ?charset=utf-8を追加するとUTF-8になります。

chMateの設定

[設定]→[実験的]→[検索に使うURL(追加用)]にコレを入力

過去ログ https://<HostName>/test/read.cgi/{$bbs}/{$key}/

制限

Deploy

  1. git clone https://github.com/shinosaki/2ch-api-worker.git
  2. cd 2ch-api-worker
  3. npm install
  4. npx wrangler login
  5. Edit wrangler.toml
  6. npm run deploy

License

MIT

About

2ch・5chのHTMLをdatに変換するCloudflare Workersアプリ/Convert 2ch (5ch) HTML to dat file on Cloudflare Workers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published