Skip to content

Instantly share code, notes, and snippets.

@AxDSan
Created October 21, 2017 19:43
Show Gist options
  • Save AxDSan/e7f8fa5d8473c8587fa7ecbb74848463 to your computer and use it in GitHub Desktop.
Save AxDSan/e7f8fa5d8473c8587fa7ecbb74848463 to your computer and use it in GitHub Desktop.
Python script to check if there are any `corgiorgy` available from a list of words
# DEPENDS: Selenium Driver
# NOTE: PhantomJS must be present in your PATH
from selenium import webdriver
browser_engine = webdriver.PhantomJS()
main_url_ = "http://"
main_url__ = ".corgiorgy.com"
words = "very through just form much great think say help low line before turn cause same mean differ move right boy old too does tell sentence set three want air well also play small end put home read hand port large spell add even land here must big high such follow act why ask men change went light kind off need house picture try us again animal point mother world near build self earth father head stand own page should country found answer school grow study still learn plant cover food sun four thought keep eye never last door between city tree cross since hard start might story saw far sea draw left late run don't while press close night real life few"
words_list = words.split()
url = ""
for word in words_list:
url = main_url_ + word + main_url__
browser_engine.get(url)
sauce = browser_engine.page_source
if "Party not found!" in sauce:
print("[+] The word [" + word + "] is available!")
else:
print("[+] The word [" + word + "] is already taken.")
print("Done!")
#EXAMPLE OUTPUT:
#[+] The Word [us] is already taken.
#[+] The Word [men] is already taken.
#[+] The Word [ask] is already taken.
#[+] The Word [why] is already taken.
#[+] The Word [eye] is already taken.
#[+] The Word [big] is already taken.
#[+] The Word [boy] is already taken.
#[+] The Word [old] is already taken
# ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment