Skip to content

Instantly share code, notes, and snippets.

@DarkMio
Last active December 31, 2015 09:43
Show Gist options
  • Save DarkMio/b627712fe42fb6063dee to your computer and use it in GitHub Desktop.
Save DarkMio/b627712fe42fb6063dee to your computer and use it in GitHub Desktop.
This checks the steam search api for keywords. Feed it with a wordlist (a list of words, each keyword (can be space seperated) in a new line). Should work with \c, \c\r and \r). Needs Requests, works best with Python3.
import requests
app_id = 0 # enter some AppID first.
url = "http://store.steampowered.com/actions/clues"
with open('wordlist.txt' as 'r') as f:
words = f.readlines()
// Go through all words - if the last character is a newline, truncate
words = [word[:-1] for word in words if word[-1] is '\n']
for word in words:
response = requests.get(url=url, params={'key': word}, headers={"Referer": "app/{}".format(app_id)})
if not response.status_code is 200:
print("Failed request on: {}".format(word))
if not response.json() is "[]":
print("HIT ON:")
print(response.json())
print("Done.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment