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

options.add_argument #48

Open
Yeleeen opened this issue Sep 17, 2021 · 5 comments
Open

options.add_argument #48

Yeleeen opened this issue Sep 17, 2021 · 5 comments

Comments

@Yeleeen
Copy link

Yeleeen commented Sep 17, 2021

Hello,

I added my chromedriver path in the file :

image

But when i try to launch the bot, here is what i got :

image

Can someone help me please ?

@imdecoder
Copy link

Same error. Please someone help!

@pokzy
Copy link
Contributor

pokzy commented Oct 9, 2021

delete this shit
parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group(required=True) group.add_argument("--firefox", action="store_true", help="Use Firefox - geckodriver") group.add_argument("--chrome", action="store_true", help = "Use Chrome - chromedriver")

and
if args.firefox: profile = webdriver.FirefoxProfile() profile.set_preference("general.useragent.ovrride", userAgent) driver = webdriver.Firefox(firefox_profile=profile, executable_path=r"your gecko driver here")

and
if args.chrome: from selenium.webdriver.chrome.options import Options options = Options() options.add_argument(f'user-agent={userAgent}') driver= webdriver.Chrome(options=options, executable_path=r"your chrome driver here")

and add this:
driver = webdriver.Chrome(r'your driver path here')
or if you're using firefox:
driver = webdriver.Firefox(r'your driver path here')

@pokzy
Copy link
Contributor

pokzy commented Oct 9, 2021

i'll open a pull request with fixed bugs & some new features like save into file.

@Yeleeen
Copy link
Author

Yeleeen commented Oct 9, 2021

Oh thanks ! It works better but i have some problem, the account infos are added to the file but the account do not work.

The script do not validate the account, it just type infos and then it stop at this point :
1111

and when i click "accept" i can see all the infos but the script do not continue to signin in

2222

I think the script do not want to click

3333

@pokzy
Copy link
Contributor

pokzy commented Oct 9, 2021

Oh thanks ! It works better but i have some problem, the account infos are added to the file but the account do not work.

The script do not validate the account, it just type infos and then it stop at this point : 1111

and when i click "accept" i can see all the infos but the script do not continue to signin in

2222

I think the script do not want to click

3333

change the cookies xpath.
if it's not signin in it means your ip or account is blocked.

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

3 participants