Script for generating Hearthstone card spoilers & checklists

Overview

This is a script for generating text spoilers and set checklists for Hearthstone.

Installation & Running

Python 3.6 or higher is required.

  1. Copy/clone the code to your computer

  2. In this directory, run python3 -m pip install --user -r requirements.txt (Requires pip)

  3. Run the code by running python3 -m hscards ... in this directory. (There are other possible ways to run the code, but let's just stick to one simple method here.)

Usage

By default, all commands fetch card data from https://hearthstonejson.com — specifically, https://api.hearthstonejson.com/v1/latest/enUS/cards.collectible.json. The c/--cards-file option can be used to specify a different file or URL in the same format to use instead.

spoiler command

python3 -m hscards [-c 
   
    ] spoiler [-I] [-o 
    
     ]

    
   

Generate a file of text spoilers for all collectible Hearthstone cards. The spoilers look like this:

Name:   Explosive Trap
Type:   Spell — Secret
Cost:   2
Class:  Hunter
Text:   Secret: When your hero is attacked, deal 2 damage to all
          enemies.
Set:    Classic (Common)
Flavor: It traps your food AND cooks it for you!
Artist: Brandon Kitkouski

If the -I/--show-ids option is specified, the spoilers will also include each card's ID.

By default, the spoilers are written to cards.txt; the -o/--outfile option can be used to specify a different file.

checklists command

python3 -m hscards [-c 
   
    ] checklists [-d 
    
     ] [-f 
     
      ] [--full-names] [
      
        ...]

      
     
    
   

Generate checklists for each collectible Hearthstone card set (either all sets or just those listed on the command line), one file per set. Files are created in the directory specified with the -d/--output-dir option (default: checklists) and are named either with each set's internal codename (e.g., the Basic set is CORE.txt and the Classic set is EXPERT1.txt) or, if the --full-names option is given, with each set's full display name (e.g., Basic.txt and Classic.txt). The checklist file format can be set with the -f/--format option: either txt (the default) or pdf.

You might also like...
Small Python script to parse endlessh's output and print some neat statistics

endlessh_parser endlessh_parser is a small Python script that parses endlessh's output and prints some neat statistics about it Usage Install all the

Helper script to bootstrap a Python environment with the tools required to build and install packages.

python-bootstrap Helper script to bootstrap a Python environment with the tools required to build and install packages. Usage $ python -m bootstrap.bu

aws ec2.py companion script to generate sshconfigs with auto bastion host discovery

ec2-bastion-sshconfig This script will interate over instances found by ec2.py and if those instances are not publically accessible it will search the

python script to generate color coded resistor images

Resistor image generator I got nerdsniped into making this. It's not finished at all, and the code is messy. The end goal it generate a whole E-series

A python script to generate wallpaper
A python script to generate wallpaper

wallpaper eits Warning You need to set the path to Robot Mono font in the source code. (Settings are in the main function) Usage A script that given a

MicroMIUI - Script to optimize miui and not only

MicroMIUI - Script to optimize miui and not only

Python script to get some stats on nodes in a Blender material nodetree

Python script to get some stats on nodes in a Blender material nodetree. It counts the nodes, the node types and the max deep level for group nodes.

Script to rename and resize folders of images

script to rename and resize folders of images

Nmap script to guess* a GitLab version.

gitlab-version-nse Nmap script to guess* a GitLab version. Usage https://github.com/righel/gitlab-version-nse cd gitlab-version-nse nmap target --s

Owner
John T. Wodder II
John T. Wodder II
Basic loader is a small tool that will help you generating Cloudflare cookies

Basic Loader Cloudflare cookies loader This tool may help some people getting valide cloudflare cookies Installation ?? : pip install -r requirements.

IHateTomLrge 8 Mar 30, 2022
Tool for generating Memory.scan() compatible instruction search patterns

scanpat Tool for generating Frida Memory.scan() compatible instruction search patterns. Powered by r2. Examples $ ./scanpat.py arm.ks:64 'sub sp, sp,

Ole André Vadla Ravnås 13 Sep 19, 2022
Stubmaker is an easy-to-use tool for generating python stubs.

Stubmaker is an easy-to-use tool for generating python stubs. Requirements Stubmaker is to be run under Python 3.7.4+ No side effects during

Toloka 24 Aug 28, 2022
A tiny Python library for generating public IDs from integers

pids Create short public identifiers based on integer IDs. Installation pip install pids Usage from pids import pid public_id = pid.from_int(1234) #

Simon Willison 7 Nov 11, 2021
python package for generating typescript grpc-web stubs from protobuf files.

grpc-web-proto-compile NOTE: This package has been superseded by romnn/proto-compile, which provides the same functionality but offers a lot more flex

Roman Dahm 0 Sep 5, 2021
Script to decrypt / import chromium (edge/chrome) cookies

Cloonie Script to decrypt / import chromium (edge/chrome) cookies. Requirements Install the python dependencies via pip: pip install -r requirements.t

Lorenzo Bernardi 5 Sep 13, 2022
cpp20.py is a Python script to compile C++20 code using modules.

cpp20.py is a Python script to compile C++20 code using modules. It browses the source files to determine their dependencies. Then, it compiles then in order using the correct flags.

Julien VERNAY 6 Aug 26, 2022
Python script to launch burp scans automatically

SimpleAutoBurp Python script that takes a config.json file as config and uses Burp Suite Pro to scan a list of websites.

Adan Álvarez 26 Jul 18, 2022
Simple script to export contacts from telegram into vCard file

Telegram Contacts Exporter Simple script to export contacts from telegram into vCard file Getting Started Prerequisites You must to put your Telegram

Pere Antoni 1 Oct 17, 2021
A script to parse and display buy_tag and sell_reason for freqtrade backtesting trades

freqtrade-buyreasons A script to parse and display buy_tag and sell_reason for freqtrade backtesting trades Usage Copy the buy_reasons.py script into

Robert Davey 31 Jan 1, 2023