How to login automatically to any site in Python using Selenium

preview_player
Показать описание
It varies for every site, because they all name elements differently. The links to the sites I used are located down below:

Рекомендации по теме
Комментарии
Автор

Really love your work Federico. Hope you continue to make these really good videos. I also love the fact that you make videos on things that you feel are good rather that focusing on some niche area like android dev. I really like the variety of content. Thanks a lot

joelvarghese
Автор

This was an excellent demonstration on how to use this particular application. Thank you so much

thebzz
Автор

Thanks this really helped, I managed to easily automate a regular download of files from website and then made headless and ran from cron. Many Thanks

degs
Автор

How to make Google Chrome dont know that the browser is controlled by a software ?

z.
Автор

What is the difference between the Selenium and SelectorsHub?

kritishah
Автор

Thanks for the video. Is it possible to run the login without opening the browser? My use case is logging in, downloading a file and landing it on my local directory (using import OS and requests). I believe we can use the "headless" argument for Chrome but wondering if that is the only solution (or headless just a hack). I know we can run the action silently using BeautifulSoup. Just learning Selenium here. Thanks

datag
Автор

hi, I am using javascript and i dont have the id eather, do you maybe know how it works with javascript?

RTZ
Автор

is there a way to run this on Google cloud Platform? I would guess that we just need to reference Selenium in a bit of a different way.

robbpapagno
Автор

can we do like if we give credentials it will automatically send to the homepage or profile without explicitly writing the URL in the code, like happens in web browser

amangautam
Автор

You wrote Hello World! 4 days ago and now you writing Selenium. I think the next video will be about ML. Thank You!

play.againn
Автор

I want to test a website which is written in PHP, will it be an issue if I test it using python like you did in the video?

NaziaTabassumNatasha
Автор

thanks bro you helped me today
one thing try except can you teach with the scraping part its needed to never make process get stopped.

gaganmalik
Автор

i want to login in multiple website, please help

deepaksingh-fxfx
Автор

How can I tell my Linux based system that it should run this python script every 24h ?

Bananen_Paul
Автор

Greetings, I would like to know how I can do autologin in Python, it is to do it from a program that runs on Windows.

Bryant.gs.
Автор

thank you for the video. just one question : could you suggest me some ideas about how to automate running python file at a particular time let's say 8:00 in the morning?

surajoberai
Автор

Hey thank you for the video!
Just a quick note,
driver.find_element(By.NAME, "name").send_keys(var) ---> it became like this in the new selenium
driver.find_element(By.NAME, "password").send_keys(var)
driver.find_element(By.CSS_SELECTOR, 'input[type="submit" i]').click()

lufius
Автор

why can't I get it to work... It's not auto filling the inputs

arctic_shark
Автор

I am getting the below error. Not able to open the url in first place :(
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it

PradyAKM
Автор

For name part you are using element_by_name but what if that name string is a 2 word string with a space like "string name" how can we write that after "by_"

berkaydoruk