Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.0 kB
5
Indexable
Never
"""
FF=23s,24s
Cr=11s,11s
"""
from selenium import webdriver
from selenium_stealth import stealth
import time

options = webdriver.ChromeOptions()
options.add_argument("--headless")
#options.add_argument('--start-maximized');
#options.add_argument('--start-fullscreen');

options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
#Quote below out if other machine than E595:
#options.binary_location = "D:\\Programme\\ungooogledChromiumPrtblDwlded2021-11-26VirCheckd\\ungoogledChromiumPrbl83Mb\\ungoogled-chromium-96.0.4664.45-1_Win64\\chrome.exe"

driver = webdriver.Chrome(options=options)

#Quote below out if other machine than E595:
#driver = webdriver.Chrome(options=options, executable_path=r'D:\Programme\ungooogledChromiumPrtblDwlded2021-11-26VirCheckd\ungoogledChromiumPrbl83Mb\ungoogled-chromium-96.0.4664.45-1_Win64\chromedriver.exe')
#driver = webdriver.Chrome(options=options, executable_path=r'D:\Programme\UngChromiumPrtbl\chromedriver.exe')
#driver = webdriver.Chrome(options=options, executable_path=r"C:\Users\DIPRAJ\Programming\adclick_bot\chromedriver.exe")
#driver = webdriver.Chrome(options=options, executable_path=r"/data/data/com.termux/files/usr/bin/chromedriver")

stealth(driver,
        languages=["en-GB", "en"],
        vendor="Google Inc.",
        platform="Win32",
        webgl_vendor="",#webgl_vendor="Intel Inc.",
        renderer="",#renderer="Intel Iris OpenGL Engine",
        fix_hairline=True,
        )

url = "https://bot.sannysoft.com/"
driver.get(url)
driver.save_screenshot("ScrnSht.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht0.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht1.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht2.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht3.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht4.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht5.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht6.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht7.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht8.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnSht9.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnShtA.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnShtB.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnShtC.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnShtD.png")
driver.execute_script("window.scrollBy(0, 500)")
driver.save_screenshot("ScrnShtE.png")
driver.execute_script("window.scrollBy(0, 500)")
#time.sleep(5)
driver.quit()