Skip to content

Python program that generates an HTML table of cards from advanced card queries

License

Notifications You must be signed in to change notification settings

Atlae/Tablesetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tablesetter


This tablesetter program queries r3n's card queries tool and generates an HTML table for quick traversal. As of Version 3.0, it provides functionality for cards a nation does not have or need to bid on.

To run, download and run query.py to overwrite query_links.txt. You should be prompted for your nation and your region, as well as if you need to find cards you haven't bid on (in case you already started bidding and need to bid on the rest). If you're not necessarily a regional collector, you can enter in a custom query, which gives you more flexibility and gives you a sense of pride, I suppose.

In addition, download modified_autoclose.js (this is almost the same as the autoclose found in gotIssues, with a few modifications) and save it to Tampermonkey. Currently, the script detects any card that ends with /pull_event_card and pressing enter would allow you to bid the default bid.

What's the default bid, you say? Well, currently it's 1.00 bank. What if you can't afford 1 bank or want to put up 2 bank? Change the following to whatever you want:

// This is your default bid! Change it to whatever you deem best.
document.querySelector("input#new_price_value[name=\"new_price\"]").value='2.00';

Credit to 9003's gotIssues (mostly sheetmaker.py written by dithpri) for providing the foundational code (taking links and putting them into an HTML table), Svenskskit for the idea, and Riemstagrad for the coding help.

About

Python program that generates an HTML table of cards from advanced card queries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published