instagram-auto-create-account icon indicating copy to clipboard operation
instagram-auto-create-account copied to clipboard

options.add_argument

Open Yeleeen opened this issue 3 years ago • 5 comments

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 ?

Yeleeen avatar Sep 17 '21 15:09 Yeleeen

Same error. Please someone help!

imdecoder avatar Sep 25 '21 17:09 imdecoder

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 avatar Oct 09 '21 00:10 pokzy

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

pokzy avatar Oct 09 '21 00:10 pokzy

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

Yeleeen avatar Oct 09 '21 14:10 Yeleeen

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.

pokzy avatar Oct 09 '21 15:10 pokzy