rabb Posted September 23, 2015 Share Posted September 23, 2015 I just signed up for a Dev APIKEY as a friend and I have recently started making a Steam bot, I'm not sure if this is the best forum to ask this question but I figured there would be many experienced bot writers and coders here. The bot we are running is a node.js using Steam-TradeOffers by Alex7Kom, which I highly reccomend (https://github.com/Alex7Kom/node-steam-tradeoffers) How can I make my bot extract the 'Get community prices' page so it'll understand the costs in the trade? Would I need to download the javascript page first or extract it straight from the Developer Center page? I'd like to be able to keep it in node.js, I don't mind downloading any more npm plugins. I'd just like the communities advice on how I could extract this information, just to value all items received. Thanks for all help in advance, rb Link to comment Share on other sites More sharing options...
The Madn3ss Posted October 7, 2015 Share Posted October 7, 2015 I found this usefull. As for how to extract the community prices (or atleast the entire pricelist file) use this: /* Edit This */ var apiKey = "Put Backpack.tf API key here"; /* End Editing */ var http = require('http'); var fs = require('fs'); getList(){ var request = http.get("http://http://backpack.tf/api/IGetPrices/v4/?key=" + apiKey, function(response) { pipe(file); return file; }); } Other than that, I have been looking for information about priceindex. I'll post here when I have more info. Link to comment Share on other sites More sharing options...
rabb Posted October 10, 2015 Author Share Posted October 10, 2015 Cheers man, glad somone finally replied xD I'll test it out now Many thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.