Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve racing conditions #129

Merged
merged 1 commit into from
Dec 16, 2023
Merged

improve racing conditions #129

merged 1 commit into from
Dec 16, 2023

Conversation

kaliiiiiiiiii
Copy link
Owner

should recolve #127

  • check if this actually works lol

should recolve #127

- [ ] check if this actually works lol
@poplu2525
Copy link

poplu2525 commented Dec 12, 2023

It still gives an error, I was trying to attach proxies but as soon as the browser is launched it gives

TimeoutError: User not connected

def load_broswer():
    proxy_selected=random.choice(proxies_list)
    #print('proxy_selected-- ',proxy_selected)
    #options = uc.ChromeOptions()
    profile = profiles.Windows() # or .Android()
    profile["proxy"] = {
      "proxy":"http://"+proxy_selected
      }
    options = ChromeOptions()
    #user_data_dir = 'D:/profiles'
    #options.add_argument("--user-data-dir=" + user_data_dir) # no effect
    driver = Chrome(profile=profile, options=options, driverless_options=True)
    driver.get("https://shop.winndixie.com/shop") # this should pass cloudflare captchas now
    time.sleep(8)
    return driver

@kaliiiiiiiiii
Copy link
Owner Author

kaliiiiiiiiii commented Dec 12, 2023

It still gives an error, I was trying to attach proxies but as soon as the browser is launched it gives

TimeoutError: User not connected

def load_broswer():
    proxy_selected=random.choice(proxies_list)
    #print('proxy_selected-- ',proxy_selected)
    #options = uc.ChromeOptions()
    profile = profiles.Windows() # or .Android()
    profile["proxy"] = {
      "proxy":"http://"+proxy_selected
      }
    options = ChromeOptions()
    #user_data_dir = 'D:/profiles'
    #options.add_argument("--user-data-dir=" + user_data_dir) # no effect
    driver = Chrome(profile=profile, options=options, driverless_options=True)
    driver.get("https://shop.winndixie.com/shop") # this should pass cloudflare captchas now
    time.sleep(8)
    return driver

please provide the imports as well

@kaliiiiiiiiii kaliiiiiiiiii merged commit c80037b into dev Dec 16, 2023
1 check passed
@kaliiiiiiiiii kaliiiiiiiiii deleted the kaliiiiiiiiii-patch-1 branch December 16, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants