Jump to content

bp.tf developer Question


rabb

Recommended Posts


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

  • 2 weeks later...

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...