No video

Selenium Browser Automation in Python

  Рет қаралды 209,792

NeuralNine

NeuralNine

Жыл бұрын

In this video, we learn how to automate website interaction using Selenium in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 143
@alex59292
@alex59292 Жыл бұрын
(pin this) you can use sellenium undetected driver since most websites detect normal selenium, this uses your normal chrome and not fresh private chrome
@okrq
@okrq Жыл бұрын
How do you do that
@coding1806
@coding1806 Жыл бұрын
@@okrq fcking go make research
@krishlorend.sinevasan6945
@krishlorend.sinevasan6945 11 ай бұрын
how?
@tangoalpha1905
@tangoalpha1905 9 ай бұрын
I have been searching around trying to find a solution for this. Someone come and bless us with the knowledge!
@ImTheRealCam
@ImTheRealCam 4 ай бұрын
You do know it’s so easy to search pip’s for python… btw the thing you 3 have been looking for is selenium_stealth.
@garyhottinger7384
@garyhottinger7384 Жыл бұрын
Excellent! Clear and concise. I just retired and can't wait to see if I can automate some of my hobby web work.
@DavidBacarella-v7z
@DavidBacarella-v7z 2 сағат бұрын
My compliments on you your video. It was focused, enabling, and well thought out. The only thing I want is "more" of these awesome vids. Thank you!
@TH-nl1sb
@TH-nl1sb Жыл бұрын
I always had a difficult time finding the right HTML elements by myself. I wish I had known you earlier. I will continue to watch all your videos. Thank you! You are a great teacher!
@knalsgtes6684
@knalsgtes6684 10 ай бұрын
same here
@suavisgiramata8802
@suavisgiramata8802 8 ай бұрын
He is a very good teacher!!!
@knalsgtes6684
@knalsgtes6684 10 ай бұрын
I have search so many tutorials on selenium as reference for our automation project,, and this is the best ever tutorial.
@koupohroyandredavid2639
@koupohroyandredavid2639 3 ай бұрын
the best ever
@imanthiu
@imanthiu Жыл бұрын
I learned a great deal from this video. It didn't help me do what I was I looking for but I always like learning new things.
@ibrahimib9020
@ibrahimib9020 Жыл бұрын
thanks man... it helped me a lot. I was starting to learn this but cannot find the right syntax to view the page. but this worked for me
@lamar2658
@lamar2658 Жыл бұрын
Hey if you could do a video on XPATH and maybe the professional ways to load and sync tabs that would be great! Very helpful and useful video!! Going to use this for sure! Thanks
@neatcomrade8537
@neatcomrade8537 Жыл бұрын
Dude! this video is exactly what i needed! thank you!
@mr_cupcakes1808
@mr_cupcakes1808 3 ай бұрын
bro's teaching is awesome thank you!
@heyalejandro175
@heyalejandro175 Жыл бұрын
So cool...thank you very much for this...Yes an XPATH video would be amazing! Thanks again!
@Delirium132231
@Delirium132231 Жыл бұрын
For selenium users: Action Chains is a nice discovery for those who didn't know before. Ofcource if FrontEnd developer was a nice guy
@ghefley
@ghefley Жыл бұрын
Well done and thank you for sharing this.
@DavidBacarella-v7z
@DavidBacarella-v7z 2 сағат бұрын
My compliments on your video. It was focused, enabling, and well thought out. Thank you.
@ucxanguyen2395
@ucxanguyen2395 Жыл бұрын
What a great video. Super well explained, thanks! Any video in your channel on how to record yourself with soft soft? I'm under the
@Relderf
@Relderf Жыл бұрын
What a professional video, neat.
@HAInett
@HAInett Жыл бұрын
that is what I needed :)))) thank you so much
@codehokage1977
@codehokage1977 Жыл бұрын
Question when finding the "7 in 1" button why don't you just copy the xpath off the inspector tool?
@nabilpro1662
@nabilpro1662 Жыл бұрын
The best as normal ❤
@mkhadka123
@mkhadka123 Жыл бұрын
This is nice to get a kick-off
@fakhruddindahodwala6816
@fakhruddindahodwala6816 Жыл бұрын
How were you able to format the html elements in your output terminal window? i get all the characters showing up line by line
@JacobJavor
@JacobJavor Ай бұрын
Thank you, was good introduction
@mehdismaeili3743
@mehdismaeili3743 Жыл бұрын
Excellent, thanks.
@DKMRFCBrlz
@DKMRFCBrlz 6 ай бұрын
Amazing video!
@sonerkocak5058
@sonerkocak5058 Жыл бұрын
Thank you! I am your fan❤️🫣!
@pruzylo
@pruzylo Жыл бұрын
Perfect video length.
@Vibeness1
@Vibeness1 Жыл бұрын
why use xpath to find the object names instead of e.g. EC.text_to_be_present_in_element ?
@soumyaranjandash3597
@soumyaranjandash3597 10 ай бұрын
Thanks this is helpful 🔥
@petrokey
@petrokey Жыл бұрын
Hello, can you please advise on classic web scripting on python? Any resource or link..
@xxjblexx
@xxjblexx Жыл бұрын
I Hope You Do A Video On XPATH Asap... That is The Core in Selenium Library To Find And Search Elements
@faridalijani1578
@faridalijani1578 Жыл бұрын
are u running Chrome as administrator or user in ur machine? I open the browser but nothing is shown and it crashes after a while! I use conda btw
@amerismartin2854
@amerismartin2854 11 ай бұрын
How do I make selenium open default chrome profile? Or desired chrome profile?
@thefunnyvlogger8218
@thefunnyvlogger8218 Жыл бұрын
Please can you tell me which framework we are using here?
@swordart802
@swordart802 Жыл бұрын
i want to use in real browser not in chormedriver how can i when i tried it doesnt get the url after browser opened
@doudline2662
@doudline2662 8 ай бұрын
Thank you sir.
@ToobaNaseem-pe7kn
@ToobaNaseem-pe7kn 28 күн бұрын
please guide us how can i automate the process of connect wallet(metamask). in my chrome browser i have installed metamask extension while in the process of automation, automated chrome driver do not have wallet extension. please guide us regarding this process.
@RocketLR
@RocketLR Жыл бұрын
Aah wish i found this earlier. Had a site that needed java script render for the tables to get populated with the data.. The online solutions did not work for some reason.. Got a bunch of chromium errors and stuff.
@hesam8845
@hesam8845 Жыл бұрын
how can I scrape google map to get contact info in specific city?
@freecreator6426
@freecreator6426 4 ай бұрын
I applied one by one, but when clicking "run" it says that the module is not defined. Tried many times.
@GabrielAGilO
@GabrielAGilO 3 ай бұрын
do ahve you encounter this error before "NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found" I have try to put many URLs but I keep getting the same error. i have looked only and I thought by adding the Service and Options would work but it did not, Any help
@jw200
@jw200 Жыл бұрын
thanks, subbed.
@JontheRippa
@JontheRippa 11 ай бұрын
Wow thank you 👍
@karlybyrd1551
@karlybyrd1551 6 ай бұрын
I apologize if this is a dumb question, but why would you not just search for the link you're trying to find instead of searching for the link inside the correct div? That seems like an extra unnecessary step that just led to finding the link anyway.
@sever5859
@sever5859 Жыл бұрын
Interesting video
@ShahzadAli-zr4ro
@ShahzadAli-zr4ro Жыл бұрын
you are great teacher of this century on youtube please let me know if anything i can do for you
@ArneSchwarck
@ArneSchwarck Жыл бұрын
Do you know why even if detach is true the chrome window will close if a KeyboardInterrupt is sent in the Terminal window?
@mrrl37
@mrrl37 Жыл бұрын
Thank you
@your_butter_chicken
@your_butter_chicken 6 ай бұрын
Hi, how to capture Screenshot in this new selenium IDE? Pls help :)
@szwyr8380
@szwyr8380 Жыл бұрын
Why don't you just click the element to get the copy of the xpath ?, i mean u just right click on the div tag or another tag and then copy the xpath... Or it would be a better way to just read on the inspect element ??? Because i new to this and didn't understand about this xpath things
@jamesmoisesllalleperez3079
@jamesmoisesllalleperez3079 8 ай бұрын
y si quisiera que guarde información en la misma página?
@musicarroll
@musicarroll Жыл бұрын
I think your selenium tutorial became an XPath tutorial.
@aleterra
@aleterra 10 ай бұрын
is there any way to solve the captcha?
@jamievercetti
@jamievercetti 10 ай бұрын
is there a more explanatory version of this video
@Zhacker0927
@Zhacker0927 10 ай бұрын
I got error WebElement object is not iterable > help please!
@madalinam5418
@madalinam5418 Ай бұрын
how can you deploy it and run recurrent on a server?
@TestSubject-ik4oq
@TestSubject-ik4oq 3 ай бұрын
For the site i am trying to do i get handshake failed
@66abady
@66abady Жыл бұрын
thanks man. I really wanna know if we can use this method when we don't have a browser installed. lets say if I was to deploy this script on a sever.
@codaq4043
@codaq4043 Жыл бұрын
Yup, you need to make it headless and host the script on aws
@philtoa334
@philtoa334 Жыл бұрын
Nice_very.Nice
@robertharrison1601
@robertharrison1601 Жыл бұрын
As in QUORUM of NINE¿?
@hansilsepp
@hansilsepp 10 ай бұрын
Es scheint, dass es ein Problem mit dem Webdriver-Manager gibt, der versucht, eine nicht vorhandene Version des ChromeDrivers herunterzuladen. Ich habe Chrome 117.0.5938.92 gibt es da eine Lösung?
@isro3085
@isro3085 Ай бұрын
Hab auch das Problem, hast du es lösen können?
@hansilsepp
@hansilsepp Ай бұрын
bin mir nicht ganz sicher, ob das die lösung war oder ob ich das problem nicht lösen konnte: man kann den webdriver auch sonst manuell ohne das managermodul von python instllieren (exe herunterladen), link der website weiss ich leider nicht mehr, allerdings muss man das nach ca. 1/2 Jahr immer wieder manuell update (neuer driver installieren)
@tulasisanjay
@tulasisanjay 8 ай бұрын
How can I automate the process of claiming Binance Crypto Boxes on their webpage using code extracted from Telegram?
@tulasisanjay
@tulasisanjay 8 ай бұрын
Make video please 🙏
@adisonfryman144
@adisonfryman144 Жыл бұрын
OK why do you put the install in there, I just ran this code and got .....Downloading: 100%|██████████| 6.79M/6.79M [00:00
@adisonfryman144
@adisonfryman144 Жыл бұрын
also the window did notstay open
@BrickToTheHeadOfficial
@BrickToTheHeadOfficial Жыл бұрын
i installed selenium and its in my scripts folder for python and everything but i keep getting "ModuleNotFoundError: No module named 'selenium'"
@Vkdride
@Vkdride 8 ай бұрын
i have same issue
@awadecoco12
@awadecoco12 6 ай бұрын
its because you are dowloading it in another interpreter
@humpalestine
@humpalestine 10 ай бұрын
It would be better if you share the python script you are describing.
@neatcomrade8537
@neatcomrade8537 Жыл бұрын
also how do i get past the captchas?
@tinaperry8632
@tinaperry8632 Жыл бұрын
I don't have a good answer to this. The only option I know of is to use a service that gets frelancers to solve the chptchas for you. But idk how to do that it also matters what type of captcha you get/are talking about plus since it's an arms race something that might work now might not in the future, atleast untill ai gets so powerful it can pass as a human in basically an situation if it does get to that point. The easiest capcha is the one you just click with no pictures or audio or math (yes i have seen a captcha that uses math) or anything else and it will accept or denie your request based on your browser activity and mouse movment.
@truealpha718
@truealpha718 Жыл бұрын
+1 subscriber____thanks a lot
@nouhailafarajy6475
@nouhailafarajy6475 5 ай бұрын
hllo can we use selenium for downold file pdf from gmail and tnx in advance
@browserautomate
@browserautomate 4 ай бұрын
yes
@wėb3ĆryptO51
@wėb3ĆryptO51 7 ай бұрын
Which code editor are you using?
@awadecoco12
@awadecoco12 6 ай бұрын
pycharm
@kwameappiahkumi5833
@kwameappiahkumi5833 Жыл бұрын
Does selenium work only on Google Chrome❓
@mkhadka123
@mkhadka123 Жыл бұрын
no it has drivers for other popular browsers as well e.g. geckodriver for firefox
@guilherme5094
@guilherme5094 Жыл бұрын
👍
@Vkdride
@Vkdride 8 ай бұрын
I get attribute error: none type object has no attribute split
@browserautomate
@browserautomate 8 ай бұрын
embed code
@bhasim4299
@bhasim4299 Жыл бұрын
Chrome driver didnt work, but firefox did. just saying
@qutaibabs1
@qutaibabs1 5 ай бұрын
which IDE you are using ?
@santisanchez4413
@santisanchez4413 4 ай бұрын
pycharm
@user-uw5qc5vq6w
@user-uw5qc5vq6w 5 ай бұрын
Which platform is that in which you are coding??
@browserautomate
@browserautomate 4 ай бұрын
PyCharm
@aswathvanan3833
@aswathvanan3833 Жыл бұрын
make video on pupeteer
@notoriousfly9260
@notoriousfly9260 Жыл бұрын
13:00
@nikolinawillette9849
@nikolinawillette9849 Жыл бұрын
I followed all the steps, but the browser still shut down 2 seconds later. What could be the problem?
@browserautomate
@browserautomate Жыл бұрын
if anyone have issue with bot detection i can solve your issue
@waljoshamarsphost6820
@waljoshamarsphost6820 9 ай бұрын
Why not simply copy the xpath of the element?
@browserautomate
@browserautomate 8 ай бұрын
ui vision is also easy
@bilalsadiq6995
@bilalsadiq6995 Ай бұрын
what is the software name you run sofware
@unveiling_visuals
@unveiling_visuals 23 күн бұрын
Pycharm I think
@sonerkocak5058
@sonerkocak5058 Жыл бұрын
Will there be an Instagram entry in the next video?
@CanlDersler10SnfPrivate
@CanlDersler10SnfPrivate Жыл бұрын
Selam
@sonerkocak7392
@sonerkocak7392 Жыл бұрын
@@CanlDersler10SnfPrivate selam
@joshuaoliverantony138
@joshuaoliverantony138 4 ай бұрын
ModuleNotFoundError: No module named 'webdriver_manager'
@browserautomate
@browserautomate 4 ай бұрын
its missing lib 'webdriver_manager' so just run before pip install webdriver_manager
@ultraracer
@ultraracer Жыл бұрын
damnn
@NationalistsRuinAmerica
@NationalistsRuinAmerica Жыл бұрын
Nacho?
@ultraracer
@ultraracer Жыл бұрын
hi
@mohamedelhousany4960
@mohamedelhousany4960 10 ай бұрын
share the script
@chickenrage940
@chickenrage940 8 ай бұрын
doesn't work anymore.
@browserautomate
@browserautomate 8 ай бұрын
specify your problem?
@chickenrage940
@chickenrage940 8 ай бұрын
@@browserautomate thanks, but i worked it out. it still works, but I didn't have chrome installed. after i installed chrome, it works again.
@timothyo718
@timothyo718 Жыл бұрын
Was German your first language? You don’t seem to have any accent whatsoever.
@abulfazhasanov2100
@abulfazhasanov2100 8 ай бұрын
Everything is ok. But why you talking like you have something in your mouth
@poornachanduchalla5651
@poornachanduchalla5651 Жыл бұрын
I am getting this error "Message: unknown error: cannot find Chrome binary" Could u tell me what to for this @NeurallNine
@firstandlast4435
@firstandlast4435 Жыл бұрын
I don't know. My browser just closes right after finishing script. I use from selenium.webdriver.chrome.options import Options chrome_options = Options() chrome_options.add_experimental_option("detach", True) browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) but it doesn't help at all
@buzzark9133
@buzzark9133 Жыл бұрын
Same, and no matter what I do it always closes after whatever script i put down. If you find a solution please let me know.
@buzzark9133
@buzzark9133 Жыл бұрын
Hey i just found a solution, let me know if you wanna hear it
@firstandlast4435
@firstandlast4435 Жыл бұрын
@@buzzark9133 it'd be nice)
@firstandlast4435
@firstandlast4435 Жыл бұрын
@79_22_16 M for now i found that you can place infinite loop after code, so your script won't be finished and browser won't close, but that's definitely awful decision)
@buzzark9133
@buzzark9133 Жыл бұрын
@@firstandlast4435 ^ you too, check the reply above
@browserautomate
@browserautomate Жыл бұрын
if anyone have issue with bot detection i can solve your issue
@vemulapraneeth6975
@vemulapraneeth6975 Жыл бұрын
i need ur help
@browserautomate
@browserautomate Жыл бұрын
@@vemulapraneeth6975 hi
@vemulapraneeth6975
@vemulapraneeth6975 Жыл бұрын
@@browserautomate how to bypass bot detection
@browserautomate
@browserautomate Жыл бұрын
@@vemulapraneeth6975 pic me about from my channel
@browserautomate
@browserautomate Жыл бұрын
@@vemulapraneeth6975 hello
Python Selenium Tutorial - Automate Websites and Create Bots
36:42
Tech With Tim
Рет қаралды 182 М.
XPath Crash Course For Python Web Scraping
30:07
NeuralNine
Рет қаралды 27 М.
🤔Какой Орган самый длинный ? #shorts
00:42
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 8 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 61 МЛН
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 175 М.
Selenium Headless Scraping For Servers & Docker
16:22
NeuralNine
Рет қаралды 26 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,5 МЛН
Automate with Python - Full Course for Beginners
2:42:55
freeCodeCamp.org
Рет қаралды 1,5 МЛН
Web Scraping with Python - Beautiful Soup Crash Course
1:08:23
freeCodeCamp.org
Рет қаралды 1,5 МЛН
7 Years of Software Engineering Advice in 18 Minutes
18:32
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,6 МЛН
3 Python Automation Projects - For Beginners
53:11
Tech With Tim
Рет қаралды 552 М.
Coding Web Crawler in Python with Scrapy
34:31
NeuralNine
Рет қаралды 107 М.
🤔Какой Орган самый длинный ? #shorts
00:42