Selenium Python Proxy Authentication

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

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

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

    This was so helpful since selenium doesn’t have built in authentication

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

    I was trying to test my code but i had no clue how to test it, until i saw your video, thanks you. it was really helpfull

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

    You saved my life thank you

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

    You need to make more videos! These are very helpful and well explained so thank you a lot

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

      Planning on uploading some soon :) a different format

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

    Ty so much ! But now, how can i do if i want to add others options arguments, how can i add in options arguments this proxies options ?

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

    Great video. Really helpful.

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

    Hey, I have a question, when using selenium wire to do what you showed, can you then go on a website and click buttons and send keys? when I try it I get errors

  • @حموديابوتيوس
    @حموديابوتيوس 3 года назад

    Hello. There are some problems that the ip or ip is changed, but any website says there is no internet with strong internet presence

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

    Muchas gracias, llevo dias tratando de que conecte al proxy de mi empresa y gracias a tu video lo pude lograr

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

    That's a great video you simplified it a lot others were giving long codes and i didn't wanted my program to look messy it helped a lot
    Thank you

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

    Excellent Stuff, I subscribed!

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

    can i use the different kind of proxy with the same method, socks4, socks5 and http?

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

    thx this video
    I get invalid syntax in the no_proxy column
    what should i do?

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

    hi, how do you use auth proxies from a txt file in the form of "ip:port:username:password" ?

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

      Let's say your text file is called "ips.txt" and the row name is data:
      You could do this and get a list with each proxy in the ip:port@username:password format:
      Link to the code: pastebin.com/tEjdxF4F
      hope it helped

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

      @@techpath3687 thanks for your prompt reply! is there any way i could use a .txt file instead of a csv file?

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

      Of course, for the code to work you could make a text file like this:
      data
      Ip:port:username:password,
      Ip:port:username:password,
      Ip:port:username:password,
      Etc

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

      @@techpath3687 okay! now that we've established taking proxies from the txt file, how do i make selenium use the proxies with imported via the text file?

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

      You just put one of them proxies[0] for example in the 'http', 'https' field, so you would have 'http': "" + proxies[0] and the same for https. You can't rotate them in selenium, so you have to use them individually.

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

    Hi, my selenium-wire is very slow, but selenium is too fast, so the same page can load for 1 minute and 3 secs, what should i do to fix this problem?

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

    hello, i have a question, how to set auth proxy in helium

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

    how to rotate proxy authentication using seleniumwire please

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

    Have you try with Remote driver ?

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

    how to get proxy or buy proxy ?

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

    running into issue where No such file or directory: '/var/folders/vw/k7ldrrt15wv88p4y19x8626h0000gn/T/_MEISHThhj/seleniumwire/ca.crt'

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

      me too, i have the same error....any solution please

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

      this happend when create a .exe file and move the app another pc, while i am using the app in my pc is all correct...

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

      @@randomlife3506 yea i turned the code into a exe with pyinstaller

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

      @@Rexdrey i use auto-py-to-exe but i can not fix yet :(, the app work perfect using .py file or the .exe file BUT move to new pc and crash

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

      @@randomlife3506 yea from what i can tell it cant find the crt so I’m looking at trying to just import it or just give the path to it

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

    how to secure proxy insted fo "Not Secure"

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

    why theres show no internet connection

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

    Hi thanks for the tutorial. I have a question, can you add a custom request header or User-Agent to the seleniumwire_options? If yes, how?

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

      I think it should work since you can do it in selenium. It should be in the options argument. Check google for normal user agent in selenium, and it should probably work too. Maybe it’s in the extra argument options (chrome_options)

  • @sabir124
    @sabir124 6 месяцев назад

    Invalid proxy server credentials supplied

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

    hi what can i do if i have a list of proxies instead

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

      Create an instance of selenium driver for each proxy so basically reopening and closing the window

  • @vlegend.5516
    @vlegend.5516 3 года назад

    hey I get Invalid server specification: anyone know why

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

    Great and simple. Thanks a lot. 👍

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

    sub i have a problem.. i got every time website not secure and send me to cloudflare capture

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

    Did not try the solution yet, but will try it very soon. But I wanted to thank you for the video :)

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

    great tutorial! Did you find some way to validate the certificate and make it a secure connection? Only seems to affect me while I'm using a proxy. If no proxy then still it says the same thing, but websites don't cause any trouble.

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

      did you found an answer?

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

      @@davidxyz5815 yes I did

    • @mustafa-bs4nl
      @mustafa-bs4nl 3 года назад

      @@avinashsah5456 can you please share the solution?

    • @avinashsah5456
      @avinashsah5456 3 года назад +3

      @@mustafa-bs4nl you are supposed to install the ca.cert in your machine. Refer to their docs at their official GitHub

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

      @@avinashsah5456 Hello friend, I have the same problem. Do you can help me please?
      When i run my code, in the address bar, appears NOT SECURE (red color) and the page to visiting has a https verified.
      Please help me, I need resolve

  • @pavelerokhin1512
    @pavelerokhin1512 10 месяцев назад

    thank you so much!

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

    How do you set it up to TMP I been trying for the past 3 hours

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

      can someone help out there or send video please

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

      You don’t need to set it up to /tmp. You just need to put it somewhere and use that path in the code. « Setting it up » is just having the driver in a place

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

      @@techpath3687 I’m still new to coding and paths are just playing too much with my head a quick little tutorial would help😭

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

      It’s not really a coding concept, the path is just where you put the file. /home, /root etc. In windows it could be C:/, in users, on desktop etc. Try watching a video on opening text files in python, they should talk about paths probably

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

      @@techpath3687 I’ve deleted most of paths to try locate my chromedriver location and to remove access to chromedriver at the same time but when I open simple project chrome stills opens and I cant locate where that driver is

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

    Thans alot bro Hats off to you!!!!!!!!!!!!!!!!!!!!!

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

    HI! I DO NOT UNDERSTAND THE FORMAT, PLEASE SHOW ME AN EXAMPLE

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

      there is a github link in the description :)

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

    thank you bro

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

    Hello friend, congrats for your video, its amazing.
    Friend, I´m following your video, and this is working.
    But, when i run my code, in the address bar, appears NOT SECURE (red color) and the page to visiting has a https verified.
    Do you can help me please.

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

      @Tech Path help me please. I don't understand this behavior.

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

      @Nelson Gomez I have the same problem. were you able to solve it?

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

    Thank you so much bro.

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

    Nice Glasses dude.

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

    hey! 🙂Congrat for your videos, they help me a lot to progress. This might be a stupid question, but I would like to know how do we make our program know which technique to use between authenticating and without authentication? Sometimes I use proxies that need authentication and sometimes I don't.I would like to have one single program for both cases. Thanks you for all

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

      Thanks! If you always whitelist your ip from the proxy provider, you’ll never need authentication. If that was your question

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

      @@techpath3687 Sorry, I misspoke😂. I have a proxy.txt file and my proxies are mixed up. Some are with authentication and others don't. And I wanted to know how I could link your 2 videos on the proxies to have a single code (with and without authentication)

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

      Well if your file has proxies that require authentication, then there must be username and password in the file. You could just import selenium and seleniumwire and use one or the other if the proxy has authentication credentials in the file

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

      @@techpath3687 thanks you i found the solution with selenium wire like you said

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

    Awesome

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

    hello friend it's ok I'm Br but I want to develop a simple system for those who understand the subject but I'm a layman and I really want this idea that I have in practice but I need the help of someone who knows the area if interested in helping me I can pay for the service if be interested reply that I will send my contt

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

    127.0.0.1:62258: ConnectionAbortedError(10053, 'An established connection was aborted by the software in your host machine', None, 10053, None) Does this error mean its aborted proxy connection and is instead using my local connection

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

      Have you tried manually writing the proxy in the proxy field, without using the txt file? Does it work?

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

    Thank you for this awesome tutorial but I have a question,
    I keep getting this error log, can you help me with this:
    seleniumwire.thirdparty.mitmproxy.exceptions.TcpDisconnect: [WinError 10053] An established connection was aborted by the software in your host machine
    Thank you for all!

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

    Why does it says Not secure