Jump to content
Goke

Ajutor script steam market

Recommended Posts

Posted

Ma poate ajuta cineva cu un script php care sa detecteze cand pretul unui item specific din steam-market este sub pretul pus de mine(cand scade pretul) , sa se auda un sunet.

Daca ma poate ajuta cineva rog un P.M.

Posted

am scris acum ceva timp asta pentru cineva


/*
* PhantomJS script to get the lowest price in a query from Steam Market.
* Useful when making autobuy bots.
*/

var page = require('webpage').create();
var url = "http://steamcommunity.com/market/search?category_730_ItemSet[]=any&category_730_TournamentTeam[]=any&category_730_Weapon[]=any&appid=730&q=knife#p1_price_asc"
page.open(url, function() {
var lowest = /\$[0-9]{2}\.[0-9]{2}/g.exec(page.content)[0],
needed = 10;
if (/[0-9]{2}/g.exec(lowest) < needed) {
console.log(lowest + " < $" + needed);
// make some alert system
} else {
console.log(lowest + " >= $" + needed);
}
phantom.exit();
});

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...