Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teamzisty/schoolpc-shere-usegoogledrive

This software allows you to download novels from 小説になろう
https://github.com/teamzisty/schoolpc-shere-usegoogledrive

Last synced: 8 days ago
JSON representation

This software allows you to download novels from 小説になろう

Awesome Lists containing this project

README

        

# Syousetu-Downloder-For-Ruby
## クリエイター
プログラム作成者: tanahiro2010

所属チーム: Zisty

YouTube: https://www.youtube.com/@tanahiro2010

Twitter: https://twitter.com/tanahiro2010

## ソフトの説明
main.rb、Soft.rbともに小説家になろうにある小説を一括ダウンロードするソフトです。
### main.rb
このプログラムは非公式APIを作成しようと、開発しました。

http://localhost:4567 にget要求をすると"Hello world!"が返されます。

私はサーバーが起動しているか確かめるのに使用します.

そして、http://localhost:4567/book?ncode={小説家になろうにある小説のncode} にアクセスすると、すこしレスポンスに時間はかかりますが現在公開されている小説の全話が表示されます。

### Soft.rb
主な機能はmain.rbと同じです。

違う部分がこのプログラムはAPI関係なくソフトとして扱うという点です。

このプログラムを実行すると、ncodeの入力が求められます

入力すると、ダウンロードが始まります。
全話のダウンロードが終了すると、Soft.rbがあるフォルダーに小説のタイトルのテキストファイルが作成されます。

そのファイルに全話の内容が記述されてあります。

## AllFunctions.rb
わけわからんことになってます

私(作者)が学校で使うようにいろいろとアップデートしていってるコードです

## 開発環境構築(Windowsの場合は管理者権限cmd使用)
### Linuxの場合
```bash
sudo su
apt install ruby
gem install nokogiri
gem install json
gem install sinatra
```

### Windowsの場合
```cmd
choco install ruby
gem install nokogiri
gem install json
gem install sinatra
```

## 実行方法
```bash
cd "main.rb or Soft.rb or GoogleDrive-shere.rbがあるフォルダーパス"
ruby "実行したいプログラムネーム"
```