diff --git a/crx/nopecha.crx b/crx/nopecha.crx new file mode 100644 index 0000000..b114a05 Binary files /dev/null and b/crx/nopecha.crx differ diff --git a/install.sh b/install.sh index d70706e..7f397fe 100755 --- a/install.sh +++ b/install.sh @@ -14,7 +14,6 @@ case "$OS_TYPE" in if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then echo "Running Linux installation script..." bash "$SCRIPTS_DIR/linux_install.sh" - bash -c "wget https://github.com/Fosowl/fosowl.github.io/raw/refs/heads/main/usefull/anticaptcha.crx" bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh" else echo "Error: $SCRIPTS_DIR/linux_install.sh not found!" @@ -26,7 +25,6 @@ case "$OS_TYPE" in if [ -f "$SCRIPTS_DIR/macos_install.sh" ]; then echo "Running macOS installation script..." bash "$SCRIPTS_DIR/macos_install.sh" - bash -c "wget https://github.com/Fosowl/fosowl.github.io/raw/refs/heads/main/usefull/anticaptcha.crx" bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh" else echo "Error: $SCRIPTS_DIR/macos_install.sh not found!" diff --git a/sources/browser.py b/sources/browser.py index 95e86ab..a6e511d 100644 --- a/sources/browser.py +++ b/sources/browser.py @@ -66,7 +66,7 @@ def create_driver(headless=False, stealth_mode=True) -> webdriver.Chrome: chrome_options.add_argument("--disable-notifications") chrome_options.add_argument('--window-size=1080,560') try: - chrome_options.add_extension("./anticaptcha.crx") + chrome_options.add_extension("./crx/nopecha.crx") except Exception as e: print(f"Failed to load AntiCaptcha extension: {str(e)}") @@ -386,20 +386,16 @@ class Browser: if __name__ == "__main__": logging.basicConfig(level=logging.INFO) - browser = Browser(headless=False) - time.sleep(8) + driver = create_driver() + browser = Browser(driver) + time.sleep(10) - try: - print("AntiCaptcha Test") - browser.go_to("https://www.google.com/recaptcha/api2/demo") - time.sleep(5) - print("Form Test:") - browser.go_to("https://practicetestautomation.com/practice-test-login/") - inputs = browser.get_form_inputs() - inputs = ['[username](student)', f'[password](Password123)', '[appOtp]()', '[backupOtp]()'] - browser.fill_form_inputs(inputs) - browser.find_and_click_submit() - print("Stress test") - browser.go_to("https://theannoyingsite.com/") - finally: - browser.close() + print("AntiCaptcha Test") + browser.go_to("https://www.google.com/recaptcha/api2/demo") + time.sleep(10) + print("Form Test:") + browser.go_to("https://practicetestautomation.com/practice-test-login/") + inputs = browser.get_form_inputs() + inputs = ['[username](student)', f'[password](Password123)', '[appOtp]()', '[backupOtp]()'] + browser.fill_form_inputs(inputs) + browser.find_and_click_submit()