Code Monkey home page Code Monkey logo

steam-market-search's Introduction

I'm very sick at the moment and will not be very active on GitHub. I'm sorry for any inconvenience this may cause for people using my tools/libraries, if you need an urgent change then the best action might be forking the repo.

I abhor social media. You will not find me on Facebook, Instagram, TikTok or whatever is popular these days. The best and fastest way to contact me would be through discord (tag below) or email (on the left for logged-in users).

โ™ก Quick Info

  • ๐Ÿ“ซ How to reach me: Discord โ†’ drkain
  • ๐Ÿ”ญ Iโ€™m currently working on -
  • ๐ŸŒฑ Iโ€™m currently learning -
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on -
  • ๐Ÿค” Iโ€™m looking for help with tidy-url
  • โšก I'm a fan of data hoarding and music
  • ๐ŸŽถ Favorite Band: Poets of the Fall

steam-market-search's People

Contributors

drkain avatar tryhardhusky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

webignorant

steam-market-search's Issues

Is game_appid not implemented yet?

The readme mentions game_appid can be used to filter trading cards by game. The code also contains the following comment:

/**
 * The AppID of the game you want to fetch cards, boosters, emoticons, backgrounds for.
 * appid must be 753 for this to work
 */
game_appid?: number | null;

And yet, this doesn't seem to be implemented? I can't get it to work. It seems no such parameter actually exists on the Steam Market API.

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.

Working with angular 12 and got error :
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to:

  • add a fallback 'resolve.fallback: { "https": require.resolve("https-browserify") }'
  • install 'https-browserify'
    If you don't want to include a polyfill, you can use an empty module like this:
    resolve.fallback: { "https": false }

is there any way to fix ? (searched fixes but didn't worked for me )

CSGO Pattern ID and Float

I want to search for certain items and I need to know their exact pattern ID and float. How do i check them?

Tasks for 1.4.0

GitHub tasks are easy enough to track so this issue is mostly for my benefit.
When all boxes are checked the update will be pushed and this issue will be closed.

To be expected in the next update:

  • +TypeScript
  • +Partial interfaces for response data
    • Should be bare minimum for consistent responses regardless of search type or app.
  • Remove cleaners
    • While these were initially made to be noob-friendly it has its own drawbacks like potentially inconsistent or incorrect values. Some specialized functions will be kept like the color detections that can benefit users.
  • +Documentation
    • So people don't need to keep adding me on discord asking about it. Sorry this wasn't already clear, Documenting code isn't something I usually do.
  • Code restructure
    • To reorganize the code, allow multiple instances and a cleaner result.
  • Custom request parameters
    • To allow customization of headers or whatever else you decide to change.
  • +Default search options
    • Allow default search options to be set for multiple searches
  • +Allow multiple category filters at once
    • Currently passing category_753_cardborder[] twice will not work, thus preventing the ability to filter multiple card borders at once.

Unsure:

These tasks may or may not be added in the next update.

  • +Currency conversions #2
    • Now that the currency parameter doesn't work (#2), I'll probably need a workaround, either with an external package or convert based on a passed parameter. I'd like to minimize the number of dependencies this package needs.
  • Better error handling
    • Right now there's pretty minimal error handling so figuring out what went wrong (like rate limits) can be unclear. I'll either make the response more clear or return more information about the error.
  • +Easier multi-page loading
    • Right now you can already pass page: x but it could benefit to pass a parameter to fetch all items for an app with a respectable interval between requests. Still not sure about this one because games like CSGO have 15,000+ items over 1.5k pages.
  • Proxy requests
    • Still on the fence about this one. Nobody has requested it but I can see the benefit when hitting API limits.

Tasks marked with a + are requested changes. If you want something added make an issue, comment here or send me a message on Discord Kain#6880. I'll be faster to reply on Discord.

Currency

How can I change the currency, or is there a table of numbers for different currencies?

TypeError: https_1.get is not a function

ERROR Error: Uncaught (in promise): TypeError: https_1.get is not a function
TypeError: https_1.get is not a function
at index.js:98
at new ZoneAwarePromise (zone-evergreen.js:1387)
at SteamMarket.push.PGmO.SteamMarket.call (index.js:94)
at index.js:147
at new ZoneAwarePromise (zone-evergreen.js:1387)
at SteamMarket.push.PGmO.SteamMarket.search (index.js:145)
at HomePageComponent.ngOnInit (home-page.component.ts:12)
at callHook (core.js:2573)
at callHooks (core.js:2542)
at executeInitAndCheckHooks (core.js:2493)
at resolvePromise (zone-evergreen.js:1213)
at resolvePromise (zone-evergreen.js:1167)
at zone-evergreen.js:1279
at ZoneDelegate.invokeTask (zone-evergreen.js:406)
at Object.onInvokeTask (core.js:28578)
at ZoneDelegate.invokeTask (zone-evergreen.js:405)
at Zone.runTask (zone-evergreen.js:178)
at drainMicroTaskQueue (zone-evergreen.js:582)

Not enough results while searching.

I started searching for "cases" then it shows only the weapon skins with tag case. I believe there are not enough number of search result outputs. As when I am entering "clutch case" the output gives the better output.
Here goes the code.

market.setRequestOptions({
    count: 100
});

market.searchCSGO('case').then(results => {
    for(result of results){
        var res = result.asset_description;
        if(res.type=='Base Grade Container'){
            console.log(res.type);  
        }
    }
});

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.