A faster way to farm cards in NationStates using Python
Original gotIssues reworked as a way to farm issues & packs easily
Before running the script, ensure you have the following:
You'll need Python 3 and pip
to install lxml
, beautifulsoup4
, and requests
. If you haven't installed pip
, follow the guide here.
To install dependencies, run:
pip install lxml beautifulsoup4 requests
These scripts will speed up your farming process, located in this repository:
- NsIssueCompactorRand.js (Hide everything except issue buttons and focus on a the middle option)
- AutoCloseLogin.user.js (Auto-closes after nation has been logged in)
- AutoClose.user.js (Auto-closes issue tabs when answered)
- PackConditionalAutocloser.user.js (from Kractero) (Auto-closes packs that does not contain legendary or card(s) with a market value over specified value)
-
Prepare Your Puppets
- Add your puppet nations to a CSV file.
- Format:
MyPuppet,MySuperClever69Password MyOtherPuppet,IForgotThePasswordForThisOne
-
Run the Scripts
- Step 1: Run
python main.py
to generate all necessary text files with issues/packs forgenerate.py
to use. - Step 2: Execute
python generate.py
to create an HTML sheet with data.
- Step 1: Run
-
Start Answering Issues/Packs
- Open the generated HTML file and click through the links.
- Spam enter until your keyboard is broken.
Using automation in NationStates comes with responsibilities and risks. Please follow the official scripting rules: NationStates Scripting Rules.
✔️ A human must press a button to trigger an event.
❌ You CANNOT use objects (e.g., a rock) to hold down a key.
❌ You CANNOT automate continuous key presses.
Using scripts improperly can violate NationStates rules (which is not fun) and result in penalties. Read and understand the code before using it. If unsure, consult the developer or a trusted source.
You are responsible for ensuring compliance with NationStates scripting regulations.
Feel free to contribute, report issues, or suggest improvements.