Skip to content

Instantly share code, notes, and snippets.

@jacobmischka
Created August 29, 2015 21:55
Show Gist options
  • Save jacobmischka/b044b21b4b1882c57e63 to your computer and use it in GitHub Desktop.
Save jacobmischka/b044b21b4b1882c57e63 to your computer and use it in GitHub Desktop.
asdfk
import requests
from bs4 import BeautifulSoup
token = "N2VOTGc2VW5zNExoZldEQ2dJTzJPajY3d05ZblM5ejNkaWhkMXEwSw=="
data = {"_token": token}
with open("fiveorless.txt") as words_file, open("availableorbanned.txt", "w") as out_file:
for rsn in words_file:
data["rsn"] = rsn
r = requests.post("http://178.62.54.243/name-check", data=data)
if "404 - Page not found" in r.text:
out_file.write(rsn+"\n")
print(rsn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment