GithubHelp home page GithubHelp logo

hiroshi-dewa / naroudataalldownload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karupoimou/naroudataalldownload

0.0 0.0 0.0 81 KB

なろうAPIから全ての作品情報を一括取得するPythonスプリクト

License: MIT License

Python 100.00%

naroudataalldownload's Introduction

概要

なろう小説APIから全ての作品情報を一括取得するPythonスプリクトです

説明

『なろう小説API』を用いて『小説家になろう』に存在する全ての小説情報データを引っ張ってきて、一つの.xlsx(エクセル形式)ファイルで出力するスクリプトです。

なろう版は約90分、ノク・ムン・ミッド版は約7分動かせば、なろうの全ての小説情報データが取得できます。

使用準備

このスクリプトでは以下のpipパッケージを使用しています。

pip install pandas
pip install tqdm
pip install requests
pip install xlsxwriter

使用方法

Python3.5以上のバージョンで.pyを実行してください。 実行ファイルと同じフォルダに

#出力ファイル名
filename ='All_OUTPUT_20xx_xx_xx.xlsx'

で指定したエクセルファイルが出力されます(なおファイルサイズは約200MBです)

トラブルシューティング

ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

サーバーからエラーが帰って来ているということです。

リクエストの間隔をあけるためのsleep関数に使っている「interval=1」の数字を大きくしてください。

「pandas」が見つからないというエラーが出る。

pip install pandas

をpipから実行してください。anacondaの場合は、スタートメニューのなかにあるanaconda promptで実行し、jupyter notebookを再起動してください。

その他

・株式会社ヒナプロジェクトの登録商標です ・このスクリプトはなろう小説APIを利用するものですが非公式なものです。 ・なろう小説APIの仕様についてはなろうデベロッパーのページをご参照ください

naroudataalldownload's People

Contributors

karupoimou 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.