Giter Site home page Giter Site logo

leftomelas / 2ch-api-worker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shinosaki/2ch-api-worker

0.0 0.0 0.0 96 KB

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

Home Page: https://2ch.lain.im

License: MIT License

JavaScript 100.00%

2ch-api-worker's Introduction

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

2ch-api-worker's People

Contributors

shinosaki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.