Jump to content


Photo
Question

Adding Full Card Sets to a trade offer

node.js node-steam-tradeoffer-manager

  • Please log in to reply
6 replies to this topic

#1 Go Fast

Go Fast

    Member

  • Member
  • PipPip
  • 22 posts

Posted 01 April 2018 - 06:22 AM

Hi,

 

I'm trying to add Full Card Sets in a trade offer. 

 

Say, the command to request card sets is !set 10, the bot will send 10 Full Card Sets. I'm not sure how to tell the bot how many Cards make a Full Set.

 

Would I need to use an API or some sort of a database with all the existing sets?

 

I would appreciate any help, thank you!  :)



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,787 posts

Posted 01 April 2018 - 03:00 PM

I'm not aware of any public API or database of full card sets. Maybe there's one somewhere. You'd need to either find one or scrape the gamecards page.



#3 McMuffinDK

McMuffinDK

    Advanced Member

  • Member
  • PipPipPip
  • 49 posts

Posted 03 April 2018 - 03:30 AM

Maybe you can use this http://steam.tools/cards/



#4 Go Fast

Go Fast

    Member

  • Member
  • PipPip
  • 22 posts

Posted 28 April 2018 - 01:25 AM

Maybe you can use this http://steam.tools/cards/

Thank you so much! It looks like I'm gonna add all of the cards data manually since there isn't any public api that does it for me.

 

One question tho: Does this site have ALL of the cards that are available?



#5 Go Fast

Go Fast

    Member

  • Member
  • PipPip
  • 22 posts

Posted 28 April 2018 - 04:31 AM

I'm not aware of any public API or database of full card sets. Maybe there's one somewhere. You'd need to either find one or scrape the gamecards page.

Nevermind, I got this to work!


Edited by Go Fast, 28 April 2018 - 07:57 AM.


#6 nikita2150

nikita2150

    Newbie

  • Member
  • Pip
  • 9 posts

Posted 12 May 2018 - 05:23 AM

Nevermind, I got this to work!

Could you explain how? Thank you in advance



#7 OmG3r

OmG3r

    Newbie

  • Member
  • Pip
  • 5 posts

Posted 22 May 2018 - 12:50 PM

Could you explain how? Thank you in advance

 

technically doing it just by using 'http://steam.tools/cards/'is impossible, however you can get the games IDs then parse 'https://www.steamcardexchange.net/index.php?inventorygame-appid-[GAME_APPID_HERE]' and save the cards from there.

 

this an example implementation, in ruby







Also tagged with one or more of these keywords: Question, node.js, node-steam-tradeoffer-manager

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users