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

cracked.io | Best Forum Around | Free Premium Accounts




 4318

Selenium Headless

by nico8D - 22 August, 2020 - 12:25 AM
This post is by a banned member (nico8D) - Unhide
nico8D  
Registered
18
Posts
3
Threads
3 Years of service
#1
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
102
Posts
3
Threads
4 Years of service
#2
(22 August, 2020 - 12:25 AM)nico8D 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)