Goke Posted October 3, 2015 Report Posted October 3, 2015 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. Quote
logged Posted October 3, 2015 Report Posted October 3, 2015 Nu apuca scriptul sa isi faca load la sunet si itemul este deja vandut! Quote
pr00f Posted October 3, 2015 Report Posted October 3, 2015 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();}); Quote