Python Selenium Tutorial #1 - Web Scraping, Bots & Testing

  Рет қаралды 1,547,261

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 1 200
@jashjcomptutorials2723
@jashjcomptutorials2723 4 жыл бұрын
You, my friend, will go down in history as a legend
@priyanshusaraf9495
@priyanshusaraf9495 4 жыл бұрын
He has already...
@mayurkalsekar524
@mayurkalsekar524 4 жыл бұрын
What if he defeats death and never goes down
@ahmadhadwan
@ahmadhadwan 4 жыл бұрын
@@mayurkalsekar524 creates a script to cheat death XD
@mohammedsaad3801
@mohammedsaad3801 4 жыл бұрын
Haha so true
@AbhijeetSinghs
@AbhijeetSinghs 3 жыл бұрын
That’s way too big words for just a KZbin video
@rohansylvain1702
@rohansylvain1702 4 жыл бұрын
I was just getting into web scraping, then you dropped this tutorial! Perfect timing.
@AbayChannel
@AbayChannel 4 жыл бұрын
Goodluck .. Try with selenium ide ..
@arkwright3274
@arkwright3274 4 жыл бұрын
same with me
@Nexus-rt1bm
@Nexus-rt1bm 4 жыл бұрын
same
@shaneebkottakkal3491
@shaneebkottakkal3491 4 жыл бұрын
same
@rmt3589
@rmt3589 3 жыл бұрын
Same, was looking into Beautiful Soup.
@kosamati9661
@kosamati9661 4 жыл бұрын
Sunday after lunch (in Poland) I was just about to sit down to study and here's a new tutorial. Perfect timing
@wojciechsuchecki5690
@wojciechsuchecki5690 4 жыл бұрын
Widzę w wybornych tematach się obracasz
@twobyfour2468
@twobyfour2468 4 жыл бұрын
@@wojciechsuchecki5690 A jak
@trol9880
@trol9880 4 жыл бұрын
witam rodaków
@weteach3263
@weteach3263 4 жыл бұрын
No cześć wszystkim :D
@aadichauhan947
@aadichauhan947 4 жыл бұрын
@@twobyfour2468 aij ies dàk rozejskï
@chrisvaia9469
@chrisvaia9469 3 жыл бұрын
I've never watched a so clear tutorial. Fantastic tutorial!
@kiranjoshi6721
@kiranjoshi6721 4 жыл бұрын
I've used Selenium for automating multiple routine tasks at my work. It is saving lots of time for me. Thanks for this series Tim, it'll be good brush up for me.
@MrQuay03
@MrQuay03 3 жыл бұрын
And what are those tasks?
@usr829
@usr829 3 жыл бұрын
Hi kiran, i tried this but not work. Please help me.
@pro-socialsociopath769
@pro-socialsociopath769 Жыл бұрын
​@@MrQuay03 His safety training ;)
@snavellet5612
@snavellet5612 4 жыл бұрын
My God, thank you for making a series in selenium
@jamesgalantino2901
@jamesgalantino2901 3 жыл бұрын
Clear, concise. Great stuff, thanks so much. It's dev's like you on KZbin and more that [literally] make the world go 'round. Appreciate this series!
@YouCantBringThemBack
@YouCantBringThemBack 7 күн бұрын
Here I am again, 4 years later, thanks for posting this 4 years ago! I knew I'd eventually forget and needed an awesome refresher course!
@santhoshxd
@santhoshxd 4 жыл бұрын
Bro you are great, I thought of making a selenium project today and you started a new series on it. Love you a lot !!
@sapemi08
@sapemi08 3 ай бұрын
I am an old guy, but I enjoy learning with your videos. As the time passes by I see you growing from an intelligent, agile teen to a more seasoned young man. Cheers!
@soviet_onion_4208
@soviet_onion_4208 4 жыл бұрын
awesone tim that was a great tutorial, i like how u ran through everything that couldve went wrong and showed people how to fix it
@ryanle6442
@ryanle6442 4 жыл бұрын
This is a very detailed tutorial on intro to web scraping using Python, well done Tim!
@geek-ko
@geek-ko 4 жыл бұрын
Time ago i was starting to understand Slenium! and now we have your selenium tutorial!! YEEES!
@datagonia
@datagonia Жыл бұрын
Hey Tim, might be a good idea to update this video, Selenium now uses Service objects to run the Drivers.
@NewCyZ
@NewCyZ Жыл бұрын
Ty
@JTJaniceTek
@JTJaniceTek Жыл бұрын
how can i download the chrome driver now??@@NewCyZ
@jawadmansoor6064
@jawadmansoor6064 3 жыл бұрын
I think you are the best teacher for python. I learned a lot from your beginner's python course (4hours) and now I hope to learn more from this course. Thank you.
@joshiashish1989
@joshiashish1989 4 жыл бұрын
Spent two hours on Friday evening to find solution to initial setup. I can have a cold beer now. Thanks. You rock!
@aiamcharina
@aiamcharina 3 жыл бұрын
Started learning selenium python today and this is really helpful, simple and easy to learn. Thanks a lot!
@marius35mm
@marius35mm 2 жыл бұрын
Did you knew python before? Asking for a friend...
@aiamcharina
@aiamcharina 2 жыл бұрын
@@marius35mm Yes, a little bit. Just the basics.
@mitchdask
@mitchdask 3 жыл бұрын
What i was trying to setup for 2+ hours with that chromedriver,solved in 5 min effort ,with this video (rookie over here!)That made my day!!!
@sameehanif9192
@sameehanif9192 4 жыл бұрын
Yesterday I was searching for selenium tutorials for so long and today he posts this video
@joshuam2341
@joshuam2341 4 жыл бұрын
Happy days
@ristoshikongo7730
@ristoshikongo7730 2 жыл бұрын
My man. A million subscribers. It's been a long time coming. Keep up the great work.
@kanhasingh728
@kanhasingh728 4 жыл бұрын
What a timing man. I was just thinking of starting web scraping 😁 Great video btw
@adrico11
@adrico11 4 жыл бұрын
Same here !!
@didedoshka
@didedoshka 4 жыл бұрын
Same!
@kanhasingh728
@kanhasingh728 4 жыл бұрын
Glad to hear guys🙂
@toshibiswas3115
@toshibiswas3115 4 жыл бұрын
the new ps5 i would think
@kanhasingh728
@kanhasingh728 4 жыл бұрын
@@toshibiswas3115 what?
@abdohm809
@abdohm809 Жыл бұрын
If the selenium version you are using is v4.6.0 or above (which I think it is as I see SeleniumManger in the error trace), then you don't really have to set the driver.exe path. Selenium can handle the browser and drivers by itself. So your code can be simplified as below: from selenium import webdriver driver = webdriver.Chrome()
@tony6709
@tony6709 Жыл бұрын
Thank you so much! I was struggling with the error until I saw your comment!
@fitrianilamsari4050
@fitrianilamsari4050 Жыл бұрын
thank u, i was struggling til i saw ur comment!
@TheScuds
@TheScuds Жыл бұрын
Will this work with Firefox as well?
@wahidurrahman7506
@wahidurrahman7506 Жыл бұрын
I was literally about to make that same comment here after struggling for an hour
@husseinsfitness5434
@husseinsfitness5434 Жыл бұрын
legend, thanks
@blossomkalabaw7941
@blossomkalabaw7941 3 жыл бұрын
this is really great Tim, thanks a lot, very concise and up to details, less garbage talks, very focused on the topic. thanks
@alfredxavier6568
@alfredxavier6568 4 жыл бұрын
This would be a great series your fans would watch it.
@muhammadarsalan7996
@muhammadarsalan7996 4 жыл бұрын
I was a chemical engineer an year back .... Now I am approaching an MS in CS ...thanks dude ....learnt a lot from you
@joshuam2341
@joshuam2341 4 жыл бұрын
Good luck!
@PaperFc
@PaperFc 2 жыл бұрын
Just curious, but why did you make a switch to CS from chem engineering?
@karandewani6614
@karandewani6614 4 жыл бұрын
I just made a tinder auto swiping bot yesterday and was thinking to learn more about selenium and this video pops up. Great timing and awesome videos man! Keep up the good work.
@jammincoder
@jammincoder 3 жыл бұрын
Great explanations, easy to follow, just what I needed to get started. Definitely earned my subscription. Thanks man.
@danielchoy7030
@danielchoy7030 4 жыл бұрын
Bruh your channel is omnipresent.
@TyroneSmithTDS
@TyroneSmithTDS 4 жыл бұрын
I've been waiting for this tutorial from you for so long. Thanks Timmmm!!!!
@moresmartsolutions9480
@moresmartsolutions9480 4 жыл бұрын
We have been waiting for this, finally!!!! So thanks Sir Let tech with Tim
@ofi2187
@ofi2187 2 жыл бұрын
So clear so clean. Thank you sir, there is no one else who explains it as well as you.
@powerb_i
@powerb_i 4 жыл бұрын
Love your videos Tim, so well presented. Thank you you're really helping me as a newbie Python programmer.
@0Sareena0
@0Sareena0 4 ай бұрын
Better than a Udemy course. What a king you are
@SkyFly19853
@SkyFly19853 4 жыл бұрын
Oh... wow... Never thought I would see Selenium on this channel... Wow...
@tt4kcoding844
@tt4kcoding844 3 жыл бұрын
the best python teacher in the world 💓💓
@akberkhan6329
@akberkhan6329 4 жыл бұрын
Awesome man, thanks for the vid! Took me a while to figure out why I was getting an error message in my terminal...It's super important that the PATH = "/Applications/chromedriver" (this is where it was for me) for Mac user is written correctly, otherwise it won't be able to find the chromedriver ... Anyways great video, will be watching the other vids.. nice work
@loralora8395
@loralora8395 4 жыл бұрын
very important indeed. Took me ages but felt so relieved in the end
@karmendurbin
@karmendurbin 3 жыл бұрын
It's been taking me forever to find this out too! LOL
@mutlucaniltir
@mutlucaniltir 2 жыл бұрын
This was the best tutorial I've seen on youtube so far. Thank you very much. Hope you get what you deserve with your effort.
@henrygutetama3173
@henrygutetama3173 4 жыл бұрын
FYI: For the Chrome driver on Windows, you can use chromedriver-binary library "pip install chromedriver-binary" in case you have trouble with the dowloaded driver.
@jaredgarbo3679
@jaredgarbo3679 3 жыл бұрын
@T Bone Have you fixed the issue?
@motlatsimoea
@motlatsimoea 2 жыл бұрын
@@jaredgarbo3679 I'm also having this same issue incase you managed to fix it..
@aniketshinde4416
@aniketshinde4416 4 ай бұрын
So concise and to the point. Makes it look easy.
@alpixfere
@alpixfere 11 ай бұрын
right after i finished the course, i wrote a programm that will spam join a kahoot game that crashes game whenever teacher gives out the code, and i'll let my programm pick some inappropreate name, anyway love your courses
@ramizquliyev394
@ramizquliyev394 4 жыл бұрын
Man!!! You are a legend. Actually I already downloaded selenium and webdriver but You have answered all problems that I was straglling when I was trying to download. You deserve more than subscribtion and likes
@mreverything4663
@mreverything4663 4 жыл бұрын
For this tutorial series, could we build some sort of notification system that uses web scraping?
@omgcyanide4642
@omgcyanide4642 3 жыл бұрын
Yes I made notifications straight to my phone with spontit or discord and use web scraping you can even permanently change variables with txt files and other cool stuff
@SquidBeats
@SquidBeats 3 жыл бұрын
Jesus Christ is God and is the only way. Hell is real whether you believe it or not.
@halamadrid5238
@halamadrid5238 3 жыл бұрын
@@omgcyanide4642 how did you do this?
@barabara9855
@barabara9855 3 жыл бұрын
@@SquidBeats somebody successfully made a bot
@ZbigniewLoboda
@ZbigniewLoboda 2 ай бұрын
❤ I love it. Unlike other tutorial authors, this one was well-prepared for the presentation.
@nerdtowncity
@nerdtowncity 4 жыл бұрын
I’ll definitely be following these videos! Will help with my work!!
@franciscolucarini8761
@franciscolucarini8761 4 жыл бұрын
Me too lol
@0myjoe
@0myjoe 4 жыл бұрын
thank you so much. This is about the only tutorial I cant find out there that makes sense and goes through each move step by step. Defo gonna keep coming back to this channel
@ДмитрийЕвстратов-э3м
@ДмитрийЕвстратов-э3м 4 жыл бұрын
This is a top tier tutorial series! Thank you a lot, you're a legend dude!
@mdemr7391
@mdemr7391 4 жыл бұрын
If your tab closes automatically after you run the code and you are using VS Code, Try to run the code right-clicking anywhere in the editor and select Run Python File in Terminal. I was running the code pressing F5, I tried this and it worked
@mkianzolz998
@mkianzolz998 2 жыл бұрын
thank u
@joewidger7954
@joewidger7954 2 жыл бұрын
Thank you :)
@mehmetemin7932
@mehmetemin7932 2 жыл бұрын
thank you
@HallofWisdom
@HallofWisdom 2 жыл бұрын
--- Thank you, M de mr - I was having that very problem and now it's solved ! --- 20NOV22
@alex17k18
@alex17k18 Жыл бұрын
same here, but tab keeps quitting...
@SOMEGUY-ci8nr
@SOMEGUY-ci8nr 3 жыл бұрын
finally someone that knows what they are talkin about i been searching for ever for a video like this :)
@akremgomri9085
@akremgomri9085 10 ай бұрын
I enjoyed the video so much, but there is an update for newer versions of chrome. You shoould do this : from selenium import webdriver PATH = "C:\\Program Files\\chromedriver-win64\\chromedriver.exe" cService = webdriver.ChromeService(executable_path=PATH) driver = webdriver.Chrome(service = cService) Instead of passing the executable_path to Chrome() directly.
@dekisatria1233
@dekisatria1233 8 ай бұрын
thanks, it help a lot. the chrome web driver change a lot. i think tim need to rework this tutorial
@CSEngineerInsider
@CSEngineerInsider Жыл бұрын
Best video in whole KZbin.
@akshatsingh7286
@akshatsingh7286 4 жыл бұрын
Great Video man!! Please do make more videos on this! Also make a video on how to setup Sublime text
@MrMarkgyuro
@MrMarkgyuro 3 жыл бұрын
big thanks, it is really good to see that you explain everything clearly and step are not left out : )
@MrJcc444
@MrJcc444 Жыл бұрын
this has some potential but no matter what I tried it doesn't work , tried it on the mac .windows same issue 'str' has no capabilities and nowhere to go from there
@deepakmalhotra2880
@deepakmalhotra2880 4 жыл бұрын
Great video which needs to go viral. The power to do this stuff is pretty sick
@2011Filmer
@2011Filmer 4 жыл бұрын
Huge fan! Keep up the good work :)
@andrewv8548
@andrewv8548 4 жыл бұрын
Selenium is insanely powerful. Super fun to use.
@donglinjin4765
@donglinjin4765 2 ай бұрын
I just started learning Selenium and the first problem I encountered was that selenium will automatically close the window if no action is made. So basically if you run the code in this video the window will stay opened for like 2 seconds then it will be shutdown. However I found a solution, add "while True: pass" in the end of the script. I hope it helps!
@iaretzeee
@iaretzeee Ай бұрын
this helped me, thank u 👍
@thiagoabsc
@thiagoabsc 4 жыл бұрын
Just great, man ! Very easy and uncomplicated! Congrats! Keep up! I hope KZbin had more of so useful stuff like this!
@dokwonsuh
@dokwonsuh 4 жыл бұрын
Hey Tim. Great videos series! I am really learning a lot - thank you so much. One idea for a future video might be how to set up headless Selenium on a remote server :)
@dillonmears6696
@dillonmears6696 2 жыл бұрын
I work in education and the quality of your tutorials is better than 90% of the teachers I have worked with! Keep up the awesome work!
@_Xyr
@_Xyr 4 жыл бұрын
I was looking for a selenium tutorial and couldn't find one that was atleast a year ago, Please upload the next parts asap Also amazing video, Keep up the good work
@codewithshajahan9997
@codewithshajahan9997 3 жыл бұрын
informative and amazing as always.Thank you Tim for these tutorials!
@vineethrao60
@vineethrao60 4 жыл бұрын
if your code dosnt work put an r before the string in path for example- r"C:\Program Files (x86)"
@ManInBlack718
@ManInBlack718 3 жыл бұрын
Thanks, but why does this work?
@ManInBlack718
@ManInBlack718 3 жыл бұрын
@@williamanstett5305 thanks!
@apotatowithfingers1572
@apotatowithfingers1572 3 жыл бұрын
do you know how to get the path to a file on a chromebook?
@ryanfernando8330
@ryanfernando8330 3 жыл бұрын
I found this immensely helpful, I used to have to put double slashes in the file path every time.
@manbearpig4702
@manbearpig4702 3 жыл бұрын
legend
@programming_hut
@programming_hut 4 жыл бұрын
Could you please start a new series after this where you will teach Basic to advance projects with ML in py Btw thanks for such a good content
@pawandeep313
@pawandeep313 4 жыл бұрын
It would be the best day ;D
@computedprogramming4705
@computedprogramming4705 4 жыл бұрын
yes also agree with your statement
@angel-ig
@angel-ig 4 жыл бұрын
kzbin.info/www/bejne/jXfVY4qdg56Srqc
@ekrem_dincel
@ekrem_dincel 4 жыл бұрын
Look at Sentdex channel
@alex17k18
@alex17k18 Жыл бұрын
I tried it like you did here 9:30, but why does it not show the chrome window when I run the code, instead the chrome opens for a sec and quits... I did everything right.
@victordvickie
@victordvickie 4 жыл бұрын
I was expecting this tut
@markbrown5365
@markbrown5365 3 жыл бұрын
"Chromedriver needs to be in PATH" ERROR keeps poping up for me. I already added them to my system environment. Still the same error. Any advice?
@Ohamskillua
@Ohamskillua 2 жыл бұрын
Bro copy the path, from your filemanager, and do // instead of /.
@uskumru3106
@uskumru3106 2 жыл бұрын
Try this: PATH=(r"C:\Program Files\dowload/chromedriver.exe") Basically PATH=(r"file_location/file_name.exe")
@mananmalhotra792
@mananmalhotra792 2 жыл бұрын
Use r’filelocation\\filename’
@markbrown5365
@markbrown5365 2 жыл бұрын
@@mananmalhotra792 thank you for answering my post. What does the "r" function do exactly & why do dome coding tutorials like this one not have them? It's confusing. When should/ shouldn't I use it?
@jimybobjim
@jimybobjim 2 жыл бұрын
@@markbrown5365 for example, if I wanted the string ‘something ’ it would create the string ‘something’, but it would have a new line at the end. If instead I did r’something ’, it would just be ‘something ’.
@preetirani8272
@preetirani8272 Жыл бұрын
can someone please share the link for download the chrome driver for chrome version 118x
@king_canutooo
@king_canutooo 3 жыл бұрын
I learnt python from you . Thank you very much Tim .
@vazp3
@vazp3 8 ай бұрын
May 2024: Following the instructions and using " from selenium import webdriver service = webdriver.ChromeService(executable_path = 'C:\Program Files (x86)\chromedriver.exe') driver = webdriver.Chrome(service=service) " worked for me, otherwise an error appears: " 'str' object has no attribute 'capabilities' "
@sjsjakskass
@sjsjakskass Ай бұрын
it shows unicode error smthng and i fixed it by adding (path= r'C:\Users .....the path ..')
@bryanwelch766
@bryanwelch766 4 жыл бұрын
Selenium setup quickly and clearly explained. Thank you!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 4 жыл бұрын
1:48 Debian includes standard packages for python3-selenium, chromium-driver and phantomjs. Both the latter two are listed as dependencies for the first one.
@santoryu8940
@santoryu8940 Жыл бұрын
Hello everyone! I am getting this error: "AttributeError: 'str' object has no attribute 'capabilities' ". Has anyone encountered the same error message? If so, may I ask how did you fix it?
@MissGurung_AI
@MissGurung_AI Жыл бұрын
replace driver = webdriver.Chrome("PATH") with driver = webdriver.Chrome()
@НиколаИванов-ю4х
@НиколаИванов-ю4х Жыл бұрын
​@@MissGurung_AI Had the same error. Thank you
@gardengnomefan
@gardengnomefan Жыл бұрын
@@MissGurung_AI I've also had the same issue, but when I do that I get an error "Error getting version of chromedriver 115. Retrying with chromedriver 114 (attempt 1/5)". And it opens like a debug? version of chrome, while I'd want it to open with my regular chrome browser. Any ideas? I'm running chrome *.171, but the chromedriver I downloaded id *.170. Is that the issue?
@NishantSingh-px3jm
@NishantSingh-px3jm 4 жыл бұрын
You can install chrome driver by using "chocolaty" by the command " choco install chromedriver" it will install the chrome driver if you have chocolaty installeed and then you will not have to add the path each time. The code will be as:- from selenium import webdriver driver = webdriver.Chrome() driver.get("google.com")
@ownzuall
@ownzuall 4 жыл бұрын
If you want to completely automate the process, chocolaty have sample of script to download it either by powershell or cmd, so you can make a cmd script that downloads chocolaty and then tells it to download the next thing.
@NishantSingh-px3jm
@NishantSingh-px3jm 4 жыл бұрын
@@ownzuall yep I know but I that that would be a bit difficult for someone who has no experience in batch files
@Lerklinten
@Lerklinten 4 жыл бұрын
... actually had some issues setting up selenium, this little video helped me, so Thanks..
@leoguitar2058
@leoguitar2058 4 жыл бұрын
Linux/MacOS: pip = install modules on python 2 pip3 = install modules on python 3
@masondigiorgio7759
@masondigiorgio7759 4 жыл бұрын
Leonardo Neute If your python is up to date pip would also be python 3, since python 2 has been phased out. At least this is the case on my Linux machine. Also you can run pip -V to make sure you are using the correct version.
@leoguitar2058
@leoguitar2058 4 жыл бұрын
​ Mason DiGiorgio in that case you should have only one version of python installed, using ubuntu
@brianscalabrine6481
@brianscalabrine6481 4 жыл бұрын
when i try to do import selenium, it won’t work. import shows up as text not a command. help
@astridzeneca1076
@astridzeneca1076 4 жыл бұрын
got the same struggle
@alextorres9750
@alextorres9750 2 жыл бұрын
Wow...just amazing...and finally proper English spoken :)
@marjotoska
@marjotoska Ай бұрын
Heads up, in 2024, doing: "driver = webdriver.Chrome(PATH)" will throw an error. It can be fixed by removing PATH, like this: "driver = webdriver.Chrome()"
@iaretzeee
@iaretzeee Ай бұрын
thank u brother this worked 👍
@sreeharshams905
@sreeharshams905 20 күн бұрын
Thank you!
@luisemilioogando
@luisemilioogando Жыл бұрын
Even Though is an old version o selenium, Im impressed with the way you teach.. Great Job 👏
@LukmanulHakim1999
@LukmanulHakim1999 4 жыл бұрын
need this :V keep upload
@callme_xoroz
@callme_xoroz Жыл бұрын
msg = f"Unable to obtain driver for {options.capabilities['browserName']} using Selenium Manager." ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'capabilities'
@elishabt662
@elishabt662 4 жыл бұрын
Tried the same and i got this error: 12296:26672:0420/163936.459:ERROR:browser_switcher_service.cc(238) XXX Init() Any help would b of great use
@truog91
@truog91 4 жыл бұрын
i got this too
@abhilashtu3653
@abhilashtu3653 4 жыл бұрын
Hi Tim thank you for your help And I have a question Why sometimes selenium act weird, like sometimes the send keys and click method will not work even if I have no errors. This is a huge strange problem it not true in every case if I had a script which not working because of the send keys issue but I copy the code and paste in a another file it worked , why is this?
@redbutton_photo
@redbutton_photo 4 жыл бұрын
I ran into something similar. Rerun PIP import selenium. Also make sure you're running import selenium from webdriver
@aniket7512
@aniket7512 Жыл бұрын
If chrome closes immediately after launching then add this to the code at end while(True): pass
@NourSoltani-mh1xh
@NourSoltani-mh1xh Жыл бұрын
For those who watch this video years after it posted. I think a few things are changed: 1) you do not need to download the web driver anymore. Just use driver = webdriver.Chrome() 2) if you open a page and it closes immediately, add the following (assuming you are using Chrome as well): from selenium.webdriver.chrome.options import Options options = Options() options.add_experimental_option("detach", True) driver = webdriver.Chrome(options= options) These are two main issues I had when I was coding along. Took me sometime to figure out a solution. Hope it helps.
@AnthonHax
@AnthonHax 3 жыл бұрын
Nice tutorial! I used geckodriver and it works fine too; but path/'driver' variables must be different with gecko: driver = webdriver.Firefox(executable_path=r'PATH\geckodriver.exe') took me a while to find out, so I'll just leave it here.
@btraboulsi
@btraboulsi 3 жыл бұрын
It was driving me crazy hahahaha. Thanks for the tip!
@user-du8hf3he7r
@user-du8hf3he7r Жыл бұрын
Update for Selenium4: Replace: driver = webdriver.Chrome(PATH) With: from selenium.webdriver.chrome.service import Service service = Service(PATH) options = webdriver.ChromeOptions() driver = webdriver.Chrome(service=service, options=options)
@پارساوالیزادهاردلان
@پارساوالیزادهاردلان Жыл бұрын
Thanks for your advice.
@friendlygodzilla
@friendlygodzilla Жыл бұрын
You know you can not include the path, right? driver = webdriver.Chrome()
@user-du8hf3he7r
@user-du8hf3he7r Жыл бұрын
@@friendlygodzilla Oops. My mistake.
@nujranujranujra
@nujranujranujra 4 жыл бұрын
If anybody is getting the error:SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape Add an 'r' before the path PATH = r"C:\"
@thelifeofsarath
@thelifeofsarath 4 жыл бұрын
Thank you!
@tobortwo3697
@tobortwo3697 3 жыл бұрын
still didn't help
@tobortwo3697
@tobortwo3697 3 жыл бұрын
@GucciVittion thanks, that's helpful. it wasn't my problem actually, but I got it fixed so it's okay. (solution: add executable path=r before the driver, but not for PATH)
@k2icc
@k2icc 4 жыл бұрын
WebDriverException: Message: chrome not reachable
@lovely-shrubbery8578
@lovely-shrubbery8578 4 жыл бұрын
I couldn't find the particular exception, but I'd look through this selenium-python.readthedocs.io/api.html#module-selenium.webdriver.chrome.webdriver if no luck I'd try the Firefox driver
@ymcho4037
@ymcho4037 4 жыл бұрын
what is your PATH
@k2icc
@k2icc 4 жыл бұрын
@@lovely-shrubbery8578 I believe that I used another path withing a folder, so that worked out fine. Now, I get empty results when scraping from tradingeconomics.com/commodities tables. A little progress, but now if arrays, those results come back empty. If anyone can try getting data from those tables, what will be great. Also tried bs4 to get into the classes of td, tr, etc. No results.. Thanks.
@herrdesai6853
@herrdesai6853 4 жыл бұрын
having error as in "chromedriver.exe"
@akittensjournal
@akittensjournal 4 жыл бұрын
Same here . Your's resolved?
@ronkzedonk
@ronkzedonk 4 жыл бұрын
@@akittensjournal check the description (second link)
@serene9228
@serene9228 4 жыл бұрын
same
@katharinaprzeperska5624
@katharinaprzeperska5624 4 жыл бұрын
@@ronkzedonk The description of what? Chrome driver? Nothing useful in there or I can't see it. How did you solve the error?
@pickledparsleyparty
@pickledparsleyparty 4 жыл бұрын
Real talk: Is there anyone out there who's advanced enough to want to use Selenium but basic enough that they don't know what Pip is nor how to install Python packages?
@loganlogan2411
@loganlogan2411 4 жыл бұрын
no
@yay69
@yay69 4 жыл бұрын
me(?
@mr2_mike
@mr2_mike 2 жыл бұрын
Yep!
@doomstarks182
@doomstarks182 2 жыл бұрын
Yeah so I know pip is what you use to install python packages? But it’s real easy for me to forget and I actually had to look up what it meant bc I was having problems with pathing and needed to fix. Installing the packages are easy but i had to to learn about relative and absolute paths and I watched a video and learned that my files locations were all jacked up and the video fixed that issue for me. I’m learning on my own and at my new job we do some data entry for new hires. We have to get id copy paste from one form to another. One of the big things is when the forms don’t match it kicks an error report and we manually go through looking for the mismatch. We have to get the new hires to fill out a paper and then we trial by error find the mistake. My first day I was like woah this is tedious and time consuming I bet I could find a way to get the information from the forms compare them and where they don’t match have the correct info put into the form. So here I am learning how to do that :)
@obamacheeseburger2046
@obamacheeseburger2046 2 жыл бұрын
Basically me
@jampavy6446
@jampavy6446 2 жыл бұрын
Really whatever this man teaches sits in my brain very nicely. Thank you so much and I like your vids very much.
@isabelalvarez4467
@isabelalvarez4467 2 жыл бұрын
This video is gold! I have needed to scrape in two different computers and i´ve come back to install everything, cause its so well explained. pls keep it online forever (L)
@TheAraz95
@TheAraz95 4 жыл бұрын
Nice, I was suggesting you to make a selenium tutorial. It's really fun for newbies!
@cass_666
@cass_666 3 жыл бұрын
Short and sweet, you always have excellent videos.
@gabymaymo8482
@gabymaymo8482 2 жыл бұрын
This is the tutorial i was looking for, very clear, you have a new subsc
@ankushsarkar1746
@ankushsarkar1746 4 жыл бұрын
Holly shit dude , I discovered selenium like 3 days back and u maikin this. Amazing man
@lod7635
@lod7635 2 жыл бұрын
this gives possibility in infinite amount of things, thank you so much.
@rolandlefranc9087
@rolandlefranc9087 3 жыл бұрын
You made me save some much time with your great short tutorial. Thank you!
@multigladiator384
@multigladiator384 4 жыл бұрын
Thanks a lot! That was exactly what I was looking for. Looking forward to some High Quality content on your channel. Subscribed.
Python Selenium Tutorial #2 - Locating Elements From HTML
16:12
Tech With Tim
Рет қаралды 722 М.
Web Scraping 101: A Million Dollar Project Idea
13:07
Tech With Tim
Рет қаралды 580 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Web Scraping for Beginners with Python and Selenium 4
21:22
The PyCoach
Рет қаралды 14 М.
Python Selenium Tutorial - Automate Websites and Create Bots
36:42
Tech With Tim
Рет қаралды 290 М.
Web Scraping with Python - Beautiful Soup Crash Course
1:08:23
freeCodeCamp.org
Рет қаралды 1,6 МЛН
Beautiful Soup 4 Tutorial #1 - Web Scraping With Python
17:01
Tech With Tim
Рет қаралды 497 М.
Selenium Browser Automation in Python
21:38
NeuralNine
Рет қаралды 240 М.
How To Make Money From Python - A Complete Guide
10:33
Tech With Tim
Рет қаралды 135 М.
Trump's Plan for "Greater America" Explained
8:42
TLDR News Global
Рет қаралды 649 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 692 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН