mirror of
https://github.com/Swarsel/koillection-tools.git
synced 2026-11-05 11:41:37 +01:00
Sloppy scripts and files to manage koillection
- Python 91.7%
- Nix 8.3%
| csv | ||
| full_list | ||
| sets | ||
| src/name | ||
| tests | ||
| .envrc | ||
| .gitignore | ||
| card_urls.txt | ||
| cards.csv | ||
| check.py | ||
| CMAPR.csv | ||
| es.csv | ||
| expansion_sheet_cards.txt | ||
| expansionsheet.csv | ||
| exs.csv | ||
| FGW.csv | ||
| FGWhave.csv | ||
| flake.lock | ||
| flake.nix | ||
| get_card_list.py | ||
| get_cardmarket.py | ||
| get_limitlesstcg.py | ||
| getone.py | ||
| MKJW.csv | ||
| MKJWhave.csv | ||
| MMK_owned | ||
| mmkpr_add | ||
| mononoke_MKJW.csv | ||
| mononoke_MMK.csv | ||
| mononoke_MMKPR.csv | ||
| mononoke_MMKTC.csv | ||
| murakami_classic.py | ||
| murakami_mononoke.py | ||
| os | ||
| post_murakami_item.py | ||
| post_murakami_wish.py | ||
| post_pokemon.py | ||
| post_pokemon_cardmarket.py | ||
| post_pokemon_cardmarket_item.py | ||
| posted_cards.csv | ||
| PR.csv | ||
| pr_add | ||
| pyproject.toml | ||
| README.md | ||
| rev_owned | ||
| SP.csv | ||
| SPhave.csv | ||
| SPneed.csv | ||
| SPrev.csv | ||
| SPrev2.csv | ||
| SPwant.csv | ||
| TCB.csv | ||
| TCB2.csv | ||
| tcb_add | ||
| TKPR.csv | ||
| update.py | ||
| uv.lock | ||
Koillection-tools
Setup env
- Enter project directory
project python- Edit Python version in
flake.nixand Python version + dependencies inpyproject.toml uv lockdirenv reload
Usage
fill credentials.txt as your koillection credentials:
username: xxx
password: yyy
use get.py to download a card list from https://limitlesstcg.com, for example https://limitlesstcg.com/cards/BS.
The run post.py and give it the link to your koillection wishlist and the csv created when prompted.
Chromium version 138
nix shell github:nixos/nixpkgs/8679b16e11becd487b45d568358ddf9d5640d860#chromium
Get cards from cardmarket
- run
get_card_list.py, passing the base url without the number aftersite=. You will also need the cookie string from cardmarket (F12 > Network > first entry (document) > cookie) to generate a list of urls (Other headers also need to be correct, check User-Agent etc) - generates acard_urls.txt - run
get_cardmarket.pypassing the filename from above to build a csv with koillection data. You will also need the cookie string from cardmarket (F12 > Network >first entry (document) > cookie) to generate a list of urls
- run
post_pokemon_cardmarket.py, passing the csv, wishlist url, and cookies from the image url on cardmarket (again as above) - run
post_pokemon_cardmarket_item.py, passing the csv, wishlist url, and cookies from the image url on cardmarket (again as above) to post to a collection (not wish