Created
August 29, 2015 21:55
-
-
Save jacobmischka/b044b21b4b1882c57e63 to your computer and use it in GitHub Desktop.
asdfk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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