GithubHelp home page GithubHelp logo

mendhak / steam-find-common-trading-sets Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 460 KB

Script to find common trading sets between two Steam profiles. Should be useful for cross-set trading

JavaScript 94.18% Dockerfile 5.82%
common inventory trading-cards profile steam

steam-find-common-trading-sets's Introduction

A script to find common trading sets between two Steam profiles. This can be useful for helping with cross-trades, and quickly knowing which sets you and another person have in common.

Usage

Run using the Docker image:

docker run --rm -t mendhak/steam-find-common-trading-sets 76561197984170060 76561197960340640

Run using the NodeJS script directly:

node findcommon.js 76561197984170060 76561197969177473

Substitute the values with your Profile ID and the other person's Profile ID.
This script requires that both people have their inventory set to public.

Screenshot

Here's an example output

screenshot

Grayed out text = both users have it
White text = the other user doesn't have it

Motivation

Sometimes I want to do a cross-set trade with another person on Steam. It would help if I knew which sets are common between us, so that I can easily filter through their inventory without going through hundreds of pages.

TODO

  • Make this a Docker container
  • Show the items one per line within the cell
  • Show the items alphabetically
  • Paging - some people will have more than 5000 items! 76561198129362520

steam-find-common-trading-sets's People

Contributors

mendhak avatar

Watchers

 avatar  avatar

steam-find-common-trading-sets's Issues

"Failed to get descriptions"

This fails: docker run --rm -t mendhak/steam-find-common-trading-sets 76561197984170060 76561198018802511

{ error: 'Failed to get descriptions' }
500
{
  server: 'nginx',
  'content-type': 'application/json; charset=utf-8',
  'x-frame-options': 'SAMEORIGIN',
  expires: 'Mon, 26 Jul 1997 05:00:00 GMT',
  'cache-control': 'no-cache',
  vary: 'Accept-Encoding',
  'content-length': '58',
  date: 'Thu, 11 Feb 2021 19:00:54 GMT',
  connection: 'close',
  'set-cookie': [
    'sessionid=fc4f9e1230c7dfb3c487e065; Path=/; Secure; SameSite=None',
    'steamCountry=GB%7C411a8de412307f4ddd6ee74b8afbbebb; Path=/; Secure; SameSite=None'
  ]
}
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'descriptions' of undefined
    at getTradingCardSet (/app/findcommon.js:27:23)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async getTradingCardSet (/app/findcommon.js:44:34)
    at async getTradingCardSet (/app/findcommon.js:44:34)
    at async getTradingCardSet (/app/findcommon.js:44:34)
    at async begin (/app/findcommon.js:68:25)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.