项目作者: stevenjoezhang

项目描述 :
炉石卡组代码解析 | Hearthstone deckstring parser written in PHP
高级语言: CSS
项目地址: git://github.com/stevenjoezhang/hearthstone-deck-php.git
创建时间: 2019-06-04T00:00:49Z
项目社区:https://github.com/stevenjoezhang/hearthstone-deck-php

开源协议:GNU General Public License v3.0

下载


Not Maintained

本仓库不再维护,请转到hsdeck

Hearthstone Deck

利用Python和PHP实现的炉石传说卡组解析应用。请使用Python3运行。

使用方法

  1. # Clone this repository
  2. git clone https://github.com/stevenjoezhang/Hearthstone-Deck.git
  3. # Go into the repository
  4. cd Hearthstone-Deck
  5. # Install dependencies
  6. pip3 install -r requirements.txt

首先建立MySQL数据库,并修改deck.py中的相关内容,使Python能够正确访问数据库。
HearthstoneJSON上找到最新的cards.collectible.json,替换掉本项目下的同名文件。
如果你直接点击这个网页上的链接,会跳转到一个类似于
https://api.hearthstonejson.com/v1/30103/enUS/cards.collectible.json
的网址。这里只有英文版本的卡牌描述。如果需要多语言版本,需要手动修改为:
https://api.hearthstonejson.com/v1/30103/all/cards.collectible.json
然后下载该文件并替换即可。

执行deck.py,会自动将json文件中的有用信息导入数据库。
public目录移到Web服务器(需支持PHP)的目录下,通过浏览器访问index.php即可查看效果。

鸣谢

本项目受到了mashirozx/Awesome-Deck的启发。

License

Released under the GNU General Public License v3
http://www.gnu.org/licenses/gpl-3.0.html