Skip to content

Commit

Permalink
Adding the script.
Browse files Browse the repository at this point in the history
  • Loading branch information
KlevGG authored Mar 15, 2023
1 parent ee6ab4c commit c61aa9a
Showing 1 changed file with 151 additions and 0 deletions.
151 changes: 151 additions & 0 deletions screenshots.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
#Required Libraries - You can change the browser driver if you would like to.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
import datetime
import time

# Headless or with Header. Some websites do not work as headless so it's recommended to keep it False.
options = Options()
options.headless = False

#Start the driver
driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)

#The list of supported trackers. Please remove unwanted trackers from the array.
trackers = ["ATH", "RF", "LST", "BLU", "HUNO", "SP", "FL"]

#AITHER
if "ATH" in trackers:
print("Entering Aither.")
driver.get('https://aither.cc/users/XXX') #Add your profile link here.
time.sleep(3) #wait 3 seconds to make sure the page loads
#Navigation - DO NOT CHANGE
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.ID, "login-button").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("Aither_"+ datastring +".png")
print("Aither Screenshoted")

#ReelFlix
if "RF" in trackers:
print("Entering Reelflix.")
driver.get('https://reelflix.xyz/users/XXX') #Add your profile link here.
time.sleep(3) #wait 3 seconds to make sure the page loads
#Navigation
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.ID, "login-button").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("RF_"+ datastring +".png")
print("Reelflix Screenshoted")

#LST
if "LST" in trackers:
print("Entering LST.")
driver.get('https://lst.gg/users/XXX') #Add your profile link here.
time.sleep(3)
#Navigation
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.ID, "login-button").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("LST_"+ datastring +".png")
print("LST Screenshoted")

#Bluetopia
if "BLU" in trackers:
print("Entering BLU.")
driver.get('https://blutopia.xyz/users/XXX') #Add your profile link here.
time.sleep(3)
#Navigation
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.ID, "login-button").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("BLU_"+ datastring +".png")
print("BLU Screenshoted")

#Hawke-Uno
if "HUNO" in trackers:
print("Entering HUNO")
driver.get('https://hawke.uno/users/XXX') #Add your profile link here.
time.sleep(3)
#Navigation - Login
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.ID, "login-button").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("BLU_"+ datastring +".png")
print("BLU Screenshoted")

#Speedapp
if "SP" in trackers:
print("Entering Speedapp.")
driver.get('https://speedapp.io/profile/') #Keep the link as it is, DO NOT CHANGE.
time.sleep(3)
#Navigation - Login
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.TAG_NAME, "button").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("SP_"+ datastring +".png")
print("SP Screenshoted")

#Filelist
if "FL" in trackers:
print("now in Filelist")
driver.get('https://filelist.io/') #Add your profile link
time.sleep(3)
#Navigation - Login
username = driver.find_element(By.NAME, "username")
password = driver.find_element(By.NAME, "password")
#Add your username and password
username.send_keys("YOUR USERNAME")
password.send_keys("YOUR PASSWORD")
#Login and save screenshot
driver.find_element(By.CLASS_NAME, "btn").click()
time.sleep(2)
datastring = datetime.datetime.now().strftime("%Y_%m_%d_%H_%M_%S")
driver.save_screenshot("FL_"+ datastring +".png")
print("FL Screenshoted")

else:
driver.quit()

driver.quit()


#steps: pip install selenium webdriver-man

0 comments on commit c61aa9a

Please sign in to comment.