ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

Cracked.to | Best Forum Around | Free Premium Accounts




 359

Selenium Headless

by nico8D - 2 months ago
This post is by a banned member (nico8D) - Unhide
nico8D  
Infinity
9
Rep
14
Likes
Posts: 25
Threads: 5
Joined: Jul 2020
Vouches:
Credits: 0
Infinity
Hello guys!

Im working on a instagram post bot with selenium.
But sometimes the headless is bugging out with chromium, any1 had a similiar experience?
Or is there a better way to post to instagram?  [Image: PepoThink.png]
This post is by a banned member (marioski123) - Unhide
0
Rep
4
Likes
Posts: 92
Threads: 3
Joined: Sep 2019
Vouches: 0
Credits: 0
1 Year of service
#2
2 months agonico8D Wrote: Show More
Hello guys!

Im working on a instagram post bot with selenium.
But sometimes the headless is bugging out with chromium, any1 had a similiar experience?
Or is there a better way to post to instagram?  [Image: PepoThink.png]

I built a bot a few weeks ago, used this to make it headless, hope it helps:

Code:
while n == 0:

    
    options = Options()
    options.add_argument("no-sandbox")
    options.add_argument("headless")
    options.add_argument("start-maximized")
    options.add_experimental_option('excludeSwitches', ['enable-logging'])
    options.add_argument("window-size=1900,1080");
    driver = webdriver.Chrome(chrome_options=options, executable_path=".\chromedriver.exe")
    driver.get('https://instagram.com/')

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)