[Journey] 1 million UVs/month in 12 months using AI generated content. Let's do it!

Status
Not open for further replies.
I edited the post but didn't update it before you replied.
Try and do things in that order then apply it at the end like so:

driver = webdriver.Chrome(options=options, service=service)

Can't help more, as I use the geckodriver not chrome, but options in that order fixed it for me.
 
I edited the post but didn't update it before you replied.
Try and do things in that order then apply it at the end like so:

driver = webdriver.Chrome(options=options, service=service)

Can't help more, as I use the geckodriver not chrome, but options in that order fixed it for me.

i tried but it still did not work . thank you for your help.
 
i tried it didnot work.
It's because you are starting chrome driver, and then implementing the options. Of course it won't work.

You FIRST declare your chrome options, and only THEN you start the webdriver.

Makes sense?

Look at YOUR picture
and then look at my code
1661498631246.png

compared to yours, where do you see me declaring webdriver.Chrome()?
AFTER the settings.
 
It's because you are starting chrome driver, and then implementing the options. Of course it won't work.

You FIRST declare your chrome options, and only THEN you start the webdriver.

Makes sense?

Look at YOUR picture
and then look at my code
View attachment 223007

compared to yours, where do you see me declaring webdriver.Chrome()?
AFTER the settings.
i made like you said but it still did not work :D

 
I'm surprised with the aid of using the fine of content. It's simply as good, if now no longer higher as compared to reasonably-priced writers
 
its just open chrome anyway..does not work as a headless.
paste your current code.

Python:
from selenium import webdriver

options = webdriver.ChromeOptions()
options.headless = True

with webdriver.Chrome(options = options) as driver:
  # do stuff

does that work?
 
my eyes bleed
I have just died

Code:
# --------------------------------------------------------------------------------------------------

This is some black magic bro
 
What do you mean by unformatted code ? no actually ı found this code on github. i am new to python and programming so i dont have knowledge as much as you.
I think @Sartre was decent enough to try and help you out.
Sadly, you don't understand the advice he(or I) is giving you.

Take a moment and try to understand what the code actually does.
Code on github is USUALLY not for beginners, and I'm sure you're doing edits in one place but running a different code segment.
 
https://stackoverflow.com/questions/53657215/running-selenium-with-headless-chrome-webdriver
JJust copy the first answer
If you copied the first answer, you should be calling "chrome_options = Options()", not webdriver.ChromeOptions()

Delete all your code including the top imports, and also use the "chrome_options.headless = True".

Not gonna derail thread any further. Good luck
 
What do you mean by unformatted code ? no actually ı found this code on github. i am new to python and programming so i dont have knowledge as much as you.
there is a limit to spoonfeeding. everyone is busy here. You might need to just start learning the language from scratch so you understand what you're doing.
 
Status
Not open for further replies.
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock