Skip to content

woctezuma/steam-trade-finder

Repository files navigation

Steam Trade Finder

Build status Code coverage Code Quality

This repository contains Python code to find Steam trades for a given appID.

Introduction

Available automated tools (STM and ASF) look for good trades for both sides. However, you can be missing out on good trades from your perspective, which would be neutral for the other side.

The good news is that if you find such a trade (good for you, neutral for them), and if the other side is using ASF, then the trade will be automatically accepted.

The objective of the tool provided in this repository is to ease the search for potentially neutral Steam trades.

Requirements

  • Install the latest version of Python 3.X.
  • Install the required packages:
pip install -r requirements.txt

Usage

Download the list of userIDs of ASF bots

The objective is to obtain a list of userIDs of ASF bots, as found in data/asf_bots.json.

Automatic process

Run the following script to download the list of userIDs of ASF bots:

python download_bot_listing.py

Manual process

HTML

Alternatively, one could manually download the HTML code from a public listing of ASF bots. Then edit it as follows, using for instance Visual Studio Code, with regular expressions allowed:

  1. Remove HTML lines which do not contain the word "steamtradematcher":
^(?!.*steamtradematcher.*).+$
  1. Trim the beginning of lines:
^.*/specscan/
  1. Trim the end of lines:
" target.*$
  1. Replace the following with \n, in order to remove empty lines:
\n+

JSON

Alternatively, one could manually download data as JSON from the official API for the public listing ASF bots.

Find Steam trades

Run the following script to find Steam trades:

python trade_finder.py

The default market appID is 448720 for Puzzle Box.

References