Skip to content

HardcoreMagazine/SteamForumTradeCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SteamForumTradeCleaner

Originally made to scalp CS2 forums, but if you have certain skills you can adapt it pretty much to any Steam trading forum.

This project is not affiliated with Valve.

The "Why"

TLDR:

Forum is overloaded with bot posts that redirect to the same users, making it hard for small traders to find new partners.

Rant:

Certain amount of people already know this, but in case you're not:

CS2 trading forum is a mess.

Users create 10+ posts each second, but in reality, if you look closely - most of these posts are not even human made. In fact - a huge majority of them are made by bots or various tools of automation.

And that's alright, I can understand that. Not everyone has the time to post same thing over and over again every hour.

But! once you start browsing these posts - I mean, really browsing them, by hand - you might find that the good third of them (or even half) actually redirect to same users.

Again, I get why people would want to do that, but it makes really hard for small traders (like myself) to find other people to trade with.

The "What"

This Program allows you to automate post lookups. The General logic is:

  1. Fetch first (50 * maxPages) posts (URLs)
  2. For each post: parse HTML, find and extract AccountID of user that is really behind the post
  3. Filter out duplicate AccountIDs
  4. Save results in CSV file on your local hard drive (by default: \<App folder>\output\results.csv)

The process might take significant amount of time since every post has to be parsed separately.

❗ Notice

On the first launch the web UI will appear, asking you to log in into your Steam account.

This is required because of the format certain posts have on a trading forum.

All of your cookies, including generated auth token are stored locally, inside the file:

\<App folder>\userCookies\session.sftc

The file extension here is custom-made, in reality it's just a unencrypted text (JSON) file. Meaning you don't want to share it with other people.

Changing forum ID and fetch size

Modify "steamAppID" and/or "maxPages" to your needs in "RunAsync" method inside SteamForumTradeCleaner/Backend/Core.cs

Defaults are:

  • steamAppID = 730
  • maxPages = 10

TODO:

  • Using de-duplicated AccountIDs check if you previously traded with selected user (how many times and when was the last time)
  • FIX: sometimes, the Program fails to extract AccountID even when the post is valid, resulting in error. Not sure what the cause is yet.

About

For people who hate manually scrolling hundreds of bot-made trading posts that lead to the same account.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages