Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/woctezuma/steam-trade-finder
Find Steam trades for a given appID.
https://github.com/woctezuma/steam-trade-finder
steam steam-api steam-inventories steam-inventory steam-trade steam-trade-offers steam-trading steam-trading-cards
Last synced: about 2 months ago
JSON representation
Find Steam trades for a given appID.
- Host: GitHub
- URL: https://github.com/woctezuma/steam-trade-finder
- Owner: woctezuma
- License: mit
- Created: 2019-11-02T22:27:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T00:35:01.000Z (11 months ago)
- Last Synced: 2024-03-14T01:33:24.894Z (11 months ago)
- Topics: steam, steam-api, steam-inventories, steam-inventory, steam-trade, steam-trade-offers, steam-trading, steam-trading-cards
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Steam Trade Finder
[![Build status][build-image]][build]
[![Code coverage][codecov-image]][codecov]
[![Code Quality][codacy-image]][codacy]This repository contains Python code to find Steam trades for a given appID.
## Introduction
Available automated tools ([STM](https://www.steamtradematcher.com/) and [ASF](https://github.com/JustArchiNET/ArchiSteamFarm/)) 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](https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Trading#steamtradematcher).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](https://www.python.org/downloads/).
- Install the required packages:```bash
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`](data/asf_bots.json).
#### Automatic process
Run the following script to download the list of userIDs of ASF bots:
```bash
python download_bot_listing.py
```#### Manual process
#### HTML
Alternatively, one could manually download the HTML code from [a public listing of ASF bots](https://asf.justarchi.net/STM).
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](https://stackoverflow.com/a/7024359) "steamtradematcher":
```regexp
^(?!.*steamtradematcher.*).+$
```2. Trim the beginning of lines:
```regexp
^.*/specscan/
```3. Trim the end of lines:
```regexp
" target.*$
```4. Replace the following with `\n`, in order to remove empty lines:
```regexp
\n+
```#### JSON
Alternatively, one could manually download data as JSON from the [official API for the public listing ASF bots][api-for-asf-bots].
### Find Steam trades
Run the following script to find Steam trades:
```bash
python trade_finder.py
```The default market appID is `448720` for [Puzzle Box](https://www.steamcardexchange.net/index.php?gamepage-appid-448720).
## References
- [Wiki: **neutral** Steam trades](https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Trading#steamtradematcher),
- [Steam Trade Matcher (STM)](https://www.steamtradematcher.com/),
- [Wiki: automated STM based on ArchiSteamFarm (ASF)](https://github.com/JustArchiNET/ArchiSteamFarm/wiki/ItemsMatcherPlugin#publiclisting),
- [A public listing of ASF bots](https://asf.justarchi.net/STM).
- [Official API for the public listing ASF bots][api-for-asf-bots][build]: https://github.com/woctezuma/steam-trade-finder/actions
[build-image]:
[pyup]: https://pyup.io/repos/github/woctezuma/steam-trade-finder/
[dependency-image]: https://pyup.io/repos/github/woctezuma/steam-trade-finder/shield.svg
[python3-image]: https://pyup.io/repos/github/woctezuma/steam-trade-finder/python-3-shield.svg
[codecov]: https://codecov.io/gh/woctezuma/steam-trade-finder
[codecov-image]: https://codecov.io/gh/woctezuma/steam-trade-finder/branch/master/graph/badge.svg
[codacy]: https://www.codacy.com/app/woctezuma/steam-trade-finder
[codacy-image]: https://api.codacy.com/project/badge/Grade/038afb64dd404f8f978ff8ba41b65aef
[api-for-asf-bots]: https://asf.justarchi.net/Api/Listing/Bots