Это видео недоступно.
Сожалеем об этом.

How to login automatically to any site in Python using Selenium

Поделиться
HTML-код
  • Опубликовано: 12 окт 2020
  • It varies for every site, because they all name elements differently. The links to the sites I used are located down below:
    Chrome driver: chromedriver.c...
    Site 1: www.stealmylogi...
    Site 2: pl-coding.com/...

Комментарии • 74

  • @Indently
    @Indently  2 года назад +3

    Looking for more good Python content? Check out: ruclips.net/channel/UCTNyF3KFTXmME0byuTRwfZA

  • @play.againn
    @play.againn 3 года назад +15

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

    • @Indently
      @Indently  3 года назад +4

      Really happy you enjoyed! I'm really looking forward to bringing a lot with Python, of course I will also continue the learning python series, but I can't wait for the ML!

    • @cattnation6257
      @cattnation6257 3 месяца назад

      lol

  • @z2.060
    @z2.060 3 года назад +25

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

    • @sultanhanga
      @sultanhanga 4 месяца назад

      Is it possible

    • @z2.060
      @z2.060 4 месяца назад

      @@sultanhanga I think so lol, literally forgot about it. It's been 3 years :)

    • @OnlineEarning-ql1ls
      @OnlineEarning-ql1ls 3 месяца назад

      😂

    • @nbon5966
      @nbon5966 25 дней назад +1

      Undeteced chromedriver v2

  • @joelvarghese3370
    @joelvarghese3370 3 года назад +7

    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

    • @Indently
      @Indently  3 года назад

      Really glad to hear that! Thanks for the support :)

    • @RohitKumar-sn4mg
      @RohitKumar-sn4mg 12 дней назад

      ​@@Indentlywithout browser possible or not?

  • @thebzz2299
    @thebzz2299 Год назад +2

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

  • @Bananen_Paul
    @Bananen_Paul 2 месяца назад +1

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

  • @danrodrig1984
    @danrodrig1984 2 года назад +2

    Very useful video mate. Keep growing

  • @degs2009
    @degs2009 Год назад

    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

  • @lufius
    @lufius Год назад +2

    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()

    • @jameswhite7637
      @jameswhite7637 Год назад

      your comment got mine going, except for the button click. is there something I could be doing wrong?

    • @jameswhite7637
      @jameswhite7637 Год назад

      i receive this
      raise exception_class(message, screen, stacktrace)
      selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: input[type="submit" i]
      Stacktrace:
      RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
      WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:180:5
      NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:392:5
      element.find/

    • @lufius
      @lufius Год назад

      @@jameswhite7637
      It just says that it's not able to locate the button element, so try to select it by something else maybe or check other ways to select the elements?

  • @datag1199
    @datag1199 Год назад +1

    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

  • @PradyAKM
    @PradyAKM 3 месяца назад

    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

  • @RTZ04
    @RTZ04 3 года назад +1

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

  • @Bryant.gs.
    @Bryant.gs. 2 месяца назад

    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.

  • @user-bt6ei4bv3q
    @user-bt6ei4bv3q 18 дней назад +1

    it was very helpful

  • @kritishah1659
    @kritishah1659 3 года назад +1

    What is the difference between the Selenium and SelectorsHub?

  • @amangautam1779
    @amangautam1779 Год назад

    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

  • @mohamedjamsheerk137
    @mohamedjamsheerk137 Месяц назад

    i cannot see find element by id or name in drop down list

  • @Ohamskillua
    @Ohamskillua 2 года назад +1

    Best tutorial ever !!!!!

  • @surajoberai
    @surajoberai Год назад +1

    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?

  • @ansonchng6192
    @ansonchng6192 3 года назад +2

    very good tutorial, thank you!

  • @arctic_shark
    @arctic_shark 5 месяцев назад

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

  • @gaganmalik9557
    @gaganmalik9557 2 года назад

    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.

  • @robbpapagno210
    @robbpapagno210 Год назад

    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.

  • @NaziaTabassumNatasha
    @NaziaTabassumNatasha Год назад

    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?

  • @berkaydoruk1431
    @berkaydoruk1431 2 года назад +1

    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_"

    • @lcoin4891
      @lcoin4891 2 года назад

      driver.find.element(By.name, "name_here")

    • @abhaydeep205
      @abhaydeep205 Год назад

      Send_key not working then

  • @kotarouriderblack6118
    @kotarouriderblack6118 3 года назад +2

    very helpful

  • @deepaksingh-fx1fx
    @deepaksingh-fx1fx 2 года назад

    i want to login in multiple website , please help

  • @dnyanesh.15
    @dnyanesh.15 2 года назад

    I am getting an error “chromedriver 2” can’t be opened because Apple cannot check it for malicious software.

    • @Indently
      @Indently  2 года назад

      This is because Apple cannot check it for malicious software.

  • @shuoma5303
    @shuoma5303 2 года назад

    This is really awesome

  • @glenn8781
    @glenn8781 2 года назад

    thanks! this was helpful!

  • @Physics69
    @Physics69 Год назад

    How to do this on VSCode

  • @fishheadset1219
    @fishheadset1219 2 года назад

    what is this interface called ?
    when i download python i only get a cmd like comand window

  • @rafafdez97
    @rafafdez97 Год назад +1

    Thank you so much and #ForzaFerrari ♥

  • @andreatancio8756
    @andreatancio8756 3 года назад +1

    very helpful :D thx

  • @danielmanea5741
    @danielmanea5741 3 года назад

    I don't know if you are going to see this, great vid by the way. I'm just getting started with selenium and I have encountered a problem. When I do these steps, the google login screen/youtube login screen appears and i don't know to get rid of that. It pops up and doesn't register any of my commands.

    • @Indently
      @Indently  3 года назад

      Hi Daniel, you're going to have to create some additional commands in Python to take care of that.

    • @danielmanea5741
      @danielmanea5741 3 года назад

      @@Indently i understand. The idea is that I don't even know what to search or how should the code look for that sign up screen to disappear:)

    • @Indently
      @Indently  3 года назад

      www.google.com/search?client=firefox-b-d&q=selenium+google+popup

  • @arickao8143
    @arickao8143 Год назад

    Very useful

  • @maris5888
    @maris5888 2 года назад

    Thank you a lot👍

  • @sathapranik6051
    @sathapranik6051 Год назад

    Please show me
    Login on mobile phone

  • @TengKaz
    @TengKaz Год назад

    thank you !

  • @electricz3045
    @electricz3045 3 года назад

    How i can let the script automatically complete hcapcha?

    • @Indently
      @Indently  3 года назад

      It's simple, you just need to make it click on the right answers and make it click on "I'm not a robot".

    • @electricz3045
      @electricz3045 3 года назад

      @@Indently Images shown are random each time so i need to implement a solvingapi like the one from capmonster but idk how to do it.

  • @ancienthydra13
    @ancienthydra13 Год назад

    Bro what is the app you are using when coding python?

  • @Sebastian-cn8lh
    @Sebastian-cn8lh 3 года назад

    google, youtube don't work x.x

  • @christophkrass6929
    @christophkrass6929 2 года назад

    bit deprecated but very good :)

  • @DoATreFlip
    @DoATreFlip 2 года назад

    how do I login to multiple accounts

    • @Indently
      @Indently  2 года назад +1

      You can use Selenium

    • @DoATreFlip
      @DoATreFlip 2 года назад

      @@Indently thanks for the reply can you make video of please aim on my knees

  • @popgabriel5327
    @popgabriel5327 Год назад

    Grazzie ragazzo

  • @nareshputta8195
    @nareshputta8195 3 года назад

    Nice vedio but we have timer 20 sec before login how we will create program

  • @mariaalejandracettour9028
    @mariaalejandracettour9028 3 года назад

    good my problem is that in the web to which I want to access ... it has 3 buttons before being able to loggear.
    1st button (login)
    2do button (select facebook or gmail)
    load my data
    3rd button send data
    How do I click on the previous buttons to get to the registration form?

    • @Indently
      @Indently  3 года назад

      Hey Maria, I don't recommend this for either Google or Facebook, they will eventually ban your account if you insist on using this for that.

    • @joeschmoe435
      @joeschmoe435 2 года назад

      @@Indently Is there an alternative that you would recommend for platforms like that? Something that is not visible as automation software to the web sites

    • @Indently
      @Indently  2 года назад

      @@joeschmoe435 I mean unless you are working with their official apis, I suggest you just use the "remember username & password fields".
      These companies are very strict, and I personally wouldn't dare to do any tests on them without expecting my account to be banned.