aboutsummaryrefslogtreecommitdiff
path: root/url-checkback-script.py
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-14 18:12:14 -0700
committers1nical <[email protected]>2019-08-14 18:12:14 -0700
commit3eae86dee3a19cc72fd6515da30985f7691ca95f (patch)
tree610e24c2f9b422774800c12d6f17a4d8c82848c4 /url-checkback-script.py
parentDelete url-checkback-script.exe (diff)
downloadurl-checkback-tool-3eae86dee3a19cc72fd6515da30985f7691ca95f.tar.xz
url-checkback-tool-3eae86dee3a19cc72fd6515da30985f7691ca95f.zip
delete unused files
Diffstat (limited to 'url-checkback-script.py')
-rw-r--r--url-checkback-script.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/url-checkback-script.py b/url-checkback-script.py
new file mode 100644
index 0000000..779cdb9
--- /dev/null
+++ b/url-checkback-script.py
@@ -0,0 +1,38 @@
+import time
+import webbrowser
+from selenium import webdriver
+from selenium.common.exceptions import NoSuchElementException
+from selenium.webdriver.support.ui import WebDriverWait
+from tkinter import *
+from tkinter.filedialog import askopenfile
+
+print (">>> URL Check-Back Tool <<< ")
+print (">>> Made by s1nical <<< ")
+
+
+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
+
+file = askopenfile(filetypes=[("Text files","*.txt")])
+codes = file.readlines()
+
+for code in codes:
+ print(attempts)
+ attempts += 1
+ driver.get("http://discord.gift/" + code)
+ time.sleep(2)
+ try:
+ texter = driver.find_element_by_xpath(xPath)
+ except NoSuchElementException:
+ print ("Might be Valid \n \n \n \n %s - @s1nical - \n \n \n \n" % code)
+ might += 1
+ continue
+ if(texter.text == "Gift Code Invalid"):
+ print("Might: %d | Invalid: %d" % (might, attempts))
+time.sleep(3);
+print("\n\tMight: %d \n\t Invalids: %d" % (might, attempts))
+driver.close()
+input('Finished')