GithubHelp home page GithubHelp logo

step63r / deresute-data-get Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

デレステのカード名から以下のデータを検索してCSVとして出力するスクリプト。

License: MIT License

Python 100.00%
python selenium

deresute-data-get's Introduction

deresute-data-get

Description

デレステのカード名から以下のデータを検索してCSVとして出力するスクリプト。

Requirement

  • Python 3.9.10

Install

このリポジトリをフォークしてクローンします。

$ git clone [email protected]:[yourname]/deresute-data-get.git

仮想Python環境を作成します。

$ python -m venv .env
$ ./.env/Scripts/activate

パッケージをインストールします。

(.env)$ python -m pip install -r .\requirements.txt

Usage

以下のようなテキストファイルを作成し...

[愛されブロッサム]月宮雅
[薔薇の闇姫]神崎蘭子
[ハート★オーバーフロー]城ヶ崎美嘉
...

コマンドラインからスクリプトを実行します。

(.env)$ python ./main.py input.txt

以下のようなファイルが出力されます。

カード番号,カード名,タイプ,初期ライフ,初期ボーカル,初期ダンス,初期ビジュアル,最大ライフ,最大ボーカル,最大ダンス,最大ビジュアル,センター効果,特技
2310,[愛されブロッサム]月宮雅,キュート,42,1919,3270,2316,44,3855,7173,4652,キュート・クロス・クール,コンセントレーション
102,[薔薇の闇姫]神崎蘭子,クール,42,3430,2287,1906,44,6892,4595,3830,クールボイス,SCOREボーナス
314,[ハート★オーバーフロー]城ヶ崎美嘉,パッション,42,2550,2875,2485,44,5123,5776,4993,パッションブリリアンス,SCOREボーナス

コマンドライン引数は以下のとおりです。

引数名 必須 内容
src_file * str 検索カード一覧のファイルパス
--engine, -e str ブラウザの種類 ['chrome', 'edge', 'firefox']
--output_path, -o str 出力ファイルパス (既定値: ./result.csv)
--exact_card option 特訓前のカード名でもその名前で検索する

Contribution

  1. このリポジトリをフォークする
  2. 修正ブランチを切る
  3. 変更をコミットする
  4. 修正ブランチをプッシュする
  5. プルリクエストを作成する

License

MIT License

Author

minato

deresute-data-get's People

Contributors

step63r avatar

Watchers

 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.