diff options
| author | fruitberry <[email protected]> | 2019-05-23 19:44:21 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-23 19:44:21 -0700 |
| commit | 62eca5631dc22e5e42e57989a0c54f46c7699f37 (patch) | |
| tree | b7d7d74f796096f7ced295abbb11c53edec2a798 | |
| parent | upload script (diff) | |
| download | url-checkback-tool-62eca5631dc22e5e42e57989a0c54f46c7699f37.tar.xz url-checkback-tool-62eca5631dc22e5e42e57989a0c54f46c7699f37.zip | |
Add files via upload
| -rw-r--r-- | project/url-checkback-tool.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/project/url-checkback-tool.py b/project/url-checkback-tool.py new file mode 100644 index 0000000..3f5d7df --- /dev/null +++ b/project/url-checkback-tool.py @@ -0,0 +1,30 @@ +import time
+from selenium import webdriver
+from selenium.common.exceptions import NoSuchElementException
+from selenium.webdriver.support.ui import WebDriverWait
+
+driver = webdriver.Chrome("C:/chromedriver.exe");
+xPath = """//*[@id="app-mount"]/div[1]/div/div[2]/div/section/div/div[1]"""
+count = 0
+might = 0
+attempts = 0
+codes = ["code1", "code2", "code3"] # this is where you put the requested paths, perameters, values, etc.
+for code in codes:
+ print(attempts)
+ attempts += 1
+ driver.get("http://discord.gift/" + code) # this is where you put the hostname of which you are checking the ^
+ time.sleep(5)
+ try:
+ texter = driver.find_element_by_xpath(xPath)
+ except NoSuchElementException:
+ print ("Might be success \n \n \n \n %s - By fruitberries/ Zoltan - \n \n \n \n" % code)
+ might += 1
+ continue
+ if(texter.text == "Gift Code Invalid"):
+ print("SUCCESSES: %d | ATTEMPTS: %d | Might be success: %d" % (count, attempts, might))
+ else:
+ print ("Success! \n \n \n \n %s - fruitberries/ Zoltan - \n \n \n \n" % code)
+ count += 1
+time.sleep(3);
+print("Done with: \n\tSuccesses: %d \n\tAttempts: %d \n\t Might: %d" % (count, attempts, might))
+driver.close()
|