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

ChatGPT_Client constructor missed ChromeOptions and Chrome #11

Closed
grayskripko opened this issue May 14, 2023 · 3 comments
Closed

ChatGPT_Client constructor missed ChromeOptions and Chrome #11

grayskripko opened this issue May 14, 2023 · 3 comments

Comments

@grayskripko
Copy link

There is no strict way to pass your own settings if you have another path to chromedriver or google-chrome-stable

@ugorsahin
Copy link
Owner

It is a good point that we need a way to customize chrome initialization. Feel free to suggest a solution, I will also look for a way to enable this.

@grayskripko
Copy link
Author

like

class ChatGPT_Client:
...
def __init__(
        self,
        username :str,
        password :str,
        headless :bool = True,
        cold_start :bool = False,
        verbose :bool = False,
        browser .. = None
    ):
..
if browser is None:
    self.browser = uc.Chrome(
            # driver_executable_path='/usr/bin/google-chrome',
            options=options,
            headless=headless,
            version_main=112
        )
...

@ugorsahin
Copy link
Owner

I addressed your problem with commit 6cde457. Now you can pass driver executable and options to constructor, I hope that will be helpful for you.

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

No branches or pull requests

2 participants