Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Backpack.TF api and steamrep #167

Closed gamemaster1494 closed 11 years ago

gamemaster1494 commented 11 years ago

In the FAQ for the api on backpack.tf, there is a property if the asked person is a steamrep scammer or not... And from the example, and when i typed in a scammer, there is no variable there anymore. Was that an older feature? Is there an option i need in the link to get it to work?

Also, does anyone know what the current format of the prices quarry is? I see the item index then 0's all over the place lol.

Also is there a way to get it to not average out the price like .11-.22 = .15....

Philipp15b commented 11 years ago

Doesn't look like there is this anymore. It's likely removed.

gamemaster1494 commented 11 years ago

Crap.. Any idea on how to find out if they are a marked scammer or not?

Philipp15b commented 11 years ago

You could use Steam's API for trade and VAC bans, but you can't access SteamRep's data. You could try to get a SteamRep API key here, I don't have any experience with this though.

If you're feeling adventurous, you could try to scrape the data off the website, but I don't know that SteamRep's owner would like this.

oojava commented 11 years ago

The robots.txt file for steam-Rep allows for you to parse their site so the owner shouldn't mind (or he doesn't know robots.txt) here is what the robots.txt says:

User-agent: * Allow: /

That means that they allow your bots on every thing http://steamrep.com/* So you can parse it! Also robots.txt is not enforceable so even if it did block you, you can't get into trouble going around it. (still do this at your own risk (shouldn't be a lot of risk but the owner might not like it and then you could get wrongfully marked as scammer (this is all i can think of happening) just remember I'm not responsible for YOUR actions))

teliosdev commented 11 years ago

@oojava robots.txt is for Spiders/Crawlers; not for projects like these. A project like this should use the API of SteamRep- not to mention, it'd be way easier to use the API.

gamemaster1494 commented 11 years ago

Isn't the API for the server plugin?

Couldn't i just create a web client and download a string of a user's steamrep profile and go from there? Or would i get killed by the owner for doing this?

The bot i'm creating is going to accept all items, and i do not want the bot trading marked scammers....

waylaidwanderer commented 11 years ago

You can do that, and I'm sure it won't be a problem as you wouldn't be putting any strain on SR's servers.

gamemaster1494 commented 11 years ago

Seeing if i can get into the WIP web api =3

Any ideas on the backpack.tf prices? I'm sure there isn't a way to get the non version of it like .11-.22 isntead of .15, but any ideas how to correct it back as in calculations and such? Cause i mean 1.66-1.33 is a rec drop, as .11-.22 is only a scrap...