mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-03 01:30:11 +00:00
feat : nopecha crx
This commit is contained in:
parent
3dbef96cf0
commit
a0b09410b3
BIN
crx/nopecha.crx
Normal file
BIN
crx/nopecha.crx
Normal file
Binary file not shown.
@ -14,7 +14,6 @@ case "$OS_TYPE" in
|
|||||||
if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then
|
if [ -f "$SCRIPTS_DIR/linux_install.sh" ]; then
|
||||||
echo "Running Linux installation script..."
|
echo "Running Linux installation script..."
|
||||||
bash "$SCRIPTS_DIR/linux_install.sh"
|
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"
|
bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh"
|
||||||
else
|
else
|
||||||
echo "Error: $SCRIPTS_DIR/linux_install.sh not found!"
|
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
|
if [ -f "$SCRIPTS_DIR/macos_install.sh" ]; then
|
||||||
echo "Running macOS installation script..."
|
echo "Running macOS installation script..."
|
||||||
bash "$SCRIPTS_DIR/macos_install.sh"
|
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"
|
bash -c "cd $LLM_ROUTER_DIR && ./dl_safetensors.sh"
|
||||||
else
|
else
|
||||||
echo "Error: $SCRIPTS_DIR/macos_install.sh not found!"
|
echo "Error: $SCRIPTS_DIR/macos_install.sh not found!"
|
||||||
|
@ -66,7 +66,7 @@ def create_driver(headless=False, stealth_mode=True) -> webdriver.Chrome:
|
|||||||
chrome_options.add_argument("--disable-notifications")
|
chrome_options.add_argument("--disable-notifications")
|
||||||
chrome_options.add_argument('--window-size=1080,560')
|
chrome_options.add_argument('--window-size=1080,560')
|
||||||
try:
|
try:
|
||||||
chrome_options.add_extension("./anticaptcha.crx")
|
chrome_options.add_extension("./crx/nopecha.crx")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Failed to load AntiCaptcha extension: {str(e)}")
|
print(f"Failed to load AntiCaptcha extension: {str(e)}")
|
||||||
|
|
||||||
@ -386,20 +386,16 @@ class Browser:
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
|
|
||||||
browser = Browser(headless=False)
|
driver = create_driver()
|
||||||
time.sleep(8)
|
browser = Browser(driver)
|
||||||
|
time.sleep(10)
|
||||||
|
|
||||||
try:
|
print("AntiCaptcha Test")
|
||||||
print("AntiCaptcha Test")
|
browser.go_to("https://www.google.com/recaptcha/api2/demo")
|
||||||
browser.go_to("https://www.google.com/recaptcha/api2/demo")
|
time.sleep(10)
|
||||||
time.sleep(5)
|
print("Form Test:")
|
||||||
print("Form Test:")
|
browser.go_to("https://practicetestautomation.com/practice-test-login/")
|
||||||
browser.go_to("https://practicetestautomation.com/practice-test-login/")
|
inputs = browser.get_form_inputs()
|
||||||
inputs = browser.get_form_inputs()
|
inputs = ['[username](student)', f'[password](Password123)', '[appOtp]()', '[backupOtp]()']
|
||||||
inputs = ['[username](student)', f'[password](Password123)', '[appOtp]()', '[backupOtp]()']
|
browser.fill_form_inputs(inputs)
|
||||||
browser.fill_form_inputs(inputs)
|
browser.find_and_click_submit()
|
||||||
browser.find_and_click_submit()
|
|
||||||
print("Stress test")
|
|
||||||
browser.go_to("https://theannoyingsite.com/")
|
|
||||||
finally:
|
|
||||||
browser.close()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user