A collection of standalone Python scripts that fetch your trade history from CS2 skin marketplaces and export it to CSV.
Each sub-folder is an independent project with its own dependencies and configuration.
| Project | Platform | Auth method | Currency |
|---|---|---|---|
csfloat/ |
CSFloat | Session cookie | USD |
buff163/ |
Buff163 | Cookie string | CNY to USD |
dmarket/ |
DMarket | API headers | USD |
lisskins/ |
Lis-Skins | Cookie string + User-Agent | USD |
Each scraper follows the same three-step flow:
- Install: create a venv and install
requirements.txt - Configure: copy
.env.exampleto.envand paste your credentials - Run:
python scraper.py
Output is a CSV file in the same directory as the script.
Fetches all verified trades via the CSFloat REST API.
Setup:
cd csfloat
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # fill in CSFLOAT_SESSIONRun:
python scraper.pyOutput: csfloat_history.csv
Scrapes buy and sell order history pages from Buff163. CNY prices are converted to USD via a live exchange rate API.
Setup:
cd buff163
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # fill in BUFF_COOKIERun:
python scraper.pyOutput: buff163_history.csv
Fetches trade history from the DMarket exchange API using offset-based pagination.
Setup:
cd dmarket
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # fill in DMARKET_AUTH, DMARKET_JKKAT, DMARKET_PAYMENT_SESSION_IDRun:
python scraper.pyOutput: dmarket_history.csv
Scrapes the Lis-Skins profile history page using Chrome browser impersonation (curl_cffi) to bypass bot detection. Account currency must be set to USD.
Setup:
cd lisskins
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # fill in LISSKINS_COOKIE and LISSKINS_USER_AGENTRun:
python scraper.pyOutput: lisskins_history.csv
- Python 3.10+
- Internet access (to reach marketplace APIs and exchange rate APIs)
| Column | CSFloat | Buff163 | DMarket | Lis-Skins |
|---|---|---|---|---|
date |
β | β | β | β |
item_name |
β | β | β | β |
action |
buy/sell |
buy/sell |
buy/sell |
buy/sell |
price_usd |
β | converted from CNY | β | β |
original_price |
β | CNY amount | β | n/a |
original_currency |
USD |
CNY |
USD |
n/a |
external_id |
β | β | β | β |