diff options
| author | fruitberry <[email protected]> | 2019-05-23 19:44:40 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-23 19:44:40 -0700 |
| commit | d0dcbacc04444f9879b68dd38e994de8afddb0d9 (patch) | |
| tree | cd9530d3a60cf1f3ff11f03aeb3c5ac499b694cd | |
| parent | Add files via upload (diff) | |
| download | url-checkback-tool-d0dcbacc04444f9879b68dd38e994de8afddb0d9.tar.xz url-checkback-tool-d0dcbacc04444f9879b68dd38e994de8afddb0d9.zip | |
Delete url-checkback-tool.py
| -rw-r--r-- | url-checkback-tool.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/url-checkback-tool.py b/url-checkback-tool.py deleted file mode 100644 index 3f5d7df..0000000 --- a/url-checkback-tool.py +++ /dev/null @@ -1,30 +0,0 @@ -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()
|