Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 小説になろう
- Host: GitHub
- URL: https://github.com/teamzisty/schoolpc-shere-usegoogledrive
- Owner: teamzisty
- Created: 2024-04-15T11:17:45.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-25T10:06:57.000Z (9 months ago)
- Last Synced: 2024-11-24T08:10:32.668Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 "実行したいプログラムネーム"
```