No video

Selenium Browser Automation in Python

  Рет қаралды 217,783

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...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 148
@alex59292
@alex59292 2 жыл бұрын
(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 Жыл бұрын
how?
@tangoalpha1905
@tangoalpha1905 10 ай бұрын
I have been searching around trying to find a solution for this. Someone come and bless us with the knowledge!
@ImTheRealCam
@ImTheRealCam 5 ай бұрын
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.
@DavidBacarella-v7z
@DavidBacarella-v7z 28 күн бұрын
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 11 ай бұрын
same here
@suavisgiramata8802
@suavisgiramata8802 9 ай бұрын
He is a very good teacher!!!
@knalsgtes6684
@knalsgtes6684 11 ай бұрын
I have search so many tutorials on selenium as reference for our automation project,, and this is the best ever tutorial.
@koupohroyandredavid2639
@koupohroyandredavid2639 4 ай бұрын
the best ever
@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
@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.
@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
@DavidBacarella-v7z
@DavidBacarella-v7z 28 күн бұрын
My compliments on your video. It was focused, enabling, and well thought out. Thank you.
@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.
@neatcomrade8537
@neatcomrade8537 2 жыл бұрын
Dude! this video is exactly what i needed! thank you!
@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
@mr_cupcakes1808
@mr_cupcakes1808 4 ай бұрын
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!
@codehokage1977
@codehokage1977 Жыл бұрын
Question when finding the "7 in 1" button why don't you just copy the xpath off the inspector tool?
@ShahzadAli-zr4ro
@ShahzadAli-zr4ro Жыл бұрын
you are great teacher of this century on youtube please let me know if anything i can do for you
@ucxanguyen2395
@ucxanguyen2395 2 жыл бұрын
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
@sonerkocak5058
@sonerkocak5058 2 жыл бұрын
Thank you! I am your fan❤️🫣!
@freecreator6426
@freecreator6426 5 ай бұрын
I applied one by one, but when clicking "run" it says that the module is not defined. Tried many times.
@musicarroll
@musicarroll Жыл бұрын
I think your selenium tutorial became an XPath tutorial.
@Relderf
@Relderf Жыл бұрын
What a professional video, neat.
@JacobJavor
@JacobJavor 2 ай бұрын
Thank you, was good introduction
@ghefley
@ghefley Жыл бұрын
Well done and thank you for sharing this.
@mkhadka123
@mkhadka123 Жыл бұрын
This is nice to get a kick-off
@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 ?
@karlybyrd1551
@karlybyrd1551 7 ай бұрын
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.
@HAInett
@HAInett Жыл бұрын
that is what I needed :)))) thank you so much
@ToobaNaseem-pe7kn
@ToobaNaseem-pe7kn Ай бұрын
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.
@MrAybebs
@MrAybebs Күн бұрын
why you dont search the elements with dev tools?
@DKMRFCBrlz
@DKMRFCBrlz 7 ай бұрын
Amazing video!
@GabrielAGilO
@GabrielAGilO 4 ай бұрын
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
@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
@xxjblexx
@xxjblexx 2 жыл бұрын
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
@nabilpro1662
@nabilpro1662 2 жыл бұрын
The best as normal ❤
@doudline2662
@doudline2662 9 ай бұрын
Thank you sir.
@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
@mehdismaeili3743
@mehdismaeili3743 2 жыл бұрын
Excellent, thanks.
@soumyaranjandash3597
@soumyaranjandash3597 11 ай бұрын
Thanks this is helpful 🔥
@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
@thefunnyvlogger8218
@thefunnyvlogger8218 Жыл бұрын
Please can you tell me which framework we are using here?
@bhasim4299
@bhasim4299 2 жыл бұрын
Chrome driver didnt work, but firefox did. just saying
@mpumi1024
@mpumi1024 8 күн бұрын
Awesome
@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
@amerismartin2854
@amerismartin2854 Жыл бұрын
How do I make selenium open default chrome profile? Or desired chrome profile?
@ArneSchwarck
@ArneSchwarck 2 жыл бұрын
Do you know why even if detach is true the chrome window will close if a KeyboardInterrupt is sent in the Terminal window?
@petrokey
@petrokey Жыл бұрын
Hello, can you please advise on classic web scripting on python? Any resource or link..
@madalinam5418
@madalinam5418 2 ай бұрын
how can you deploy it and run recurrent on a server?
@jamesmoisesllalleperez3079
@jamesmoisesllalleperez3079 9 ай бұрын
y si quisiera que guarde información en la misma página?
@TestSubject-ik4oq
@TestSubject-ik4oq 4 ай бұрын
For the site i am trying to do i get handshake failed
@mrrl37
@mrrl37 Жыл бұрын
Thank you
@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.
@JontheRippa
@JontheRippa Жыл бұрын
Wow thank you 👍
@jamievercetti
@jamievercetti 11 ай бұрын
is there a more explanatory version of this video
@sonerkocak5058
@sonerkocak5058 2 жыл бұрын
Will there be an Instagram entry in the next video?
@CanlDersler10SnfPrivate
@CanlDersler10SnfPrivate 2 жыл бұрын
Selam
@sonerkocak7392
@sonerkocak7392 Жыл бұрын
@@CanlDersler10SnfPrivate selam
@hansilsepp
@hansilsepp 11 ай бұрын
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 2 ай бұрын
Hab auch das Problem, hast du es lösen können?
@hansilsepp
@hansilsepp 2 ай бұрын
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)
@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
@hesam8845
@hesam8845 Жыл бұрын
how can I scrape google map to get contact info in specific city?
@your_butter_chicken
@your_butter_chicken 7 ай бұрын
Hi, how to capture Screenshot in this new selenium IDE? Pls help :)
@aleterra
@aleterra 11 ай бұрын
is there any way to solve the captcha?
@Zhacker0927
@Zhacker0927 11 ай бұрын
I got error WebElement object is not iterable > help please!
@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
@tulasisanjay
@tulasisanjay 9 ай бұрын
How can I automate the process of claiming Binance Crypto Boxes on their webpage using code extracted from Telegram?
@tulasisanjay
@tulasisanjay 9 ай бұрын
Make video please 🙏
@humpalestine
@humpalestine 11 ай бұрын
It would be better if you share the python script you are describing.
@66abady
@66abady 2 жыл бұрын
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
@jw200
@jw200 2 жыл бұрын
thanks, subbed.
@sever5859
@sever5859 2 жыл бұрын
Interesting video
@robertharrison1601
@robertharrison1601 2 жыл бұрын
As in QUORUM of NINE¿?
@user-uw5qc5vq6w
@user-uw5qc5vq6w 6 ай бұрын
Which platform is that in which you are coding??
@browserautomate
@browserautomate 5 ай бұрын
PyCharm
@UR-VK
@UR-VK 9 ай бұрын
I get attribute error: none type object has no attribute split
@browserautomate
@browserautomate 9 ай бұрын
embed code
@wėb3ĆryptO51
@wėb3ĆryptO51 8 ай бұрын
Which code editor are you using?
@awadecoco12
@awadecoco12 7 ай бұрын
pycharm
@qutaibabs1
@qutaibabs1 6 ай бұрын
which IDE you are using ?
@santisanchez4413
@santisanchez4413 5 ай бұрын
pycharm
@waljoshamarsphost6820
@waljoshamarsphost6820 10 ай бұрын
Why not simply copy the xpath of the element?
@browserautomate
@browserautomate 9 ай бұрын
ui vision is also easy
@neatcomrade8537
@neatcomrade8537 2 жыл бұрын
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.
@BrickToTheHeadOfficial
@BrickToTheHeadOfficial Жыл бұрын
i installed selenium and its in my scripts folder for python and everything but i keep getting "ModuleNotFoundError: No module named 'selenium'"
@UR-VK
@UR-VK 9 ай бұрын
i have same issue
@awadecoco12
@awadecoco12 7 ай бұрын
its because you are dowloading it in another interpreter
@bilalsadiq6995
@bilalsadiq6995 Ай бұрын
what is the software name you run sofware
@unveiling_visuals
@unveiling_visuals Ай бұрын
Pycharm I think
@nikolinawillette9849
@nikolinawillette9849 Жыл бұрын
I followed all the steps, but the browser still shut down 2 seconds later. What could be the problem?
@nouhailafarajy6475
@nouhailafarajy6475 6 ай бұрын
hllo can we use selenium for downold file pdf from gmail and tnx in advance
@browserautomate
@browserautomate 5 ай бұрын
yes
@joshuaoliverantony138
@joshuaoliverantony138 5 ай бұрын
ModuleNotFoundError: No module named 'webdriver_manager'
@browserautomate
@browserautomate 5 ай бұрын
its missing lib 'webdriver_manager' so just run before pip install webdriver_manager
@aswathvanan3833
@aswathvanan3833 2 жыл бұрын
make video on pupeteer
@philtoa334
@philtoa334 2 жыл бұрын
Nice_very.Nice
@truealpha718
@truealpha718 Жыл бұрын
+1 subscriber____thanks a lot
@browserautomate
@browserautomate Жыл бұрын
if anyone have issue with bot detection i can solve your issue
@chickenrage940
@chickenrage940 9 ай бұрын
doesn't work anymore.
@browserautomate
@browserautomate 9 ай бұрын
specify your problem?
@chickenrage940
@chickenrage940 9 ай бұрын
@@browserautomate thanks, but i worked it out. it still works, but I didn't have chrome installed. after i installed chrome, it works again.
@notoriousfly9260
@notoriousfly9260 Жыл бұрын
13:00
@NationalistsRuinAmerica
@NationalistsRuinAmerica Жыл бұрын
Nacho?
@guilherme5094
@guilherme5094 2 жыл бұрын
👍
@timothyo718
@timothyo718 2 жыл бұрын
Was German your first language? You don’t seem to have any accent whatsoever.
@ultraracer
@ultraracer Жыл бұрын
hi
@mohamedelhousany4960
@mohamedelhousany4960 11 ай бұрын
share the script
@ultraracer
@ultraracer Жыл бұрын
damnn
@abulfazhasanov2100
@abulfazhasanov2100 9 ай бұрын
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
@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
XPath Crash Course For Python Web Scraping
30:07
NeuralNine
Рет қаралды 27 М.
Python Selenium Tutorial - Automate Websites and Create Bots
36:42
Tech With Tim
Рет қаралды 200 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4 МЛН
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,6 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 187 М.
Web automation in python for beginners
11:02
Hitesh Choudhary
Рет қаралды 548 М.
I run untested, viewer-submitted code on my 500-LED christmas tree.
45:17
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 398 М.
Login and Scrape Data with Playwright and Python
10:22
John Watson Rooney
Рет қаралды 110 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,6 МЛН
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 56 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4 МЛН