Python Selenium Tutorial - Automate Websites and Create Bots

Python Selenium Tutorial - Automate Websites and Create Bots

Tech With Tim

6 месяцев назад

156,123 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@leemeng
@leemeng - 02.12.2023 01:10

I would note that many modern websites including Google use random class names in their HTML which are dynamically generated. This could be an anti-scraping measure, or it could be the result of the framework used (I believe Angular does this). So that specific class name you are using in the example will probably not work by the time anyone reads this. As a better alternative, you can find an element with CSS or Xpath for more reliable results. To use CSS, change the code to find_element(By.CSS_SELECTOR

Ответить
@TheUnderPoweredGamer
@TheUnderPoweredGamer - 01.12.2023 18:27

Tim, how do i navigate the problem where I run the code and it prompts me with the cookies reject or accept, google sign in page? If i try to login in the program instance google tells me it is not a supported platform, and if I login from my actual chrome browser it doesnt change anything? should I add code that scrolls down and presses the accept or reject button, or is there a way to completely bypass the popup window?

Ответить
@bordignonjunior
@bordignonjunior - 30.11.2023 14:11

AttributeError: 'WebDriver' object has no attribute 'get_element'

why?

Ответить
@fernandomartino4708
@fernandomartino4708 - 29.11.2023 17:40

Hi, Tim. Wouldn't be easier to use webdriver_manager library where it gets the last version of the driver to match the browser you have installed? because everytime you have a version upload you have to download it and retest this?

Ответить
@sixthsense844
@sixthsense844 - 29.11.2023 07:41

More selenium tutorial please, keep up the great content

Ответить
@carlitosvh91
@carlitosvh91 - 29.11.2023 03:32

This was very helpful. Thank you very much.

Ответить
@CHICKENSY
@CHICKENSY - 29.11.2023 03:00

Woah, i wanted that! thanks

Ответить
@AsuGhimire
@AsuGhimire - 29.11.2023 02:32

DUDE I NEEDED THIS AND YOU JUS UPLOADED IT XD

Ответить
@PhunkyBob
@PhunkyBob - 29.11.2023 00:05

Thank you for your videos! I love them.

When I make a comment adding information based on my experience, it's always suppressed.
What is the reason?
For instance here I commented about a Python module helping with drivers installation.

Ответить
@esat0_090
@esat0_090 - 28.11.2023 22:57

tim whats your vs code settings for syntax colors I've tried some methods but none of them was working for example (ctrl + K + T) can you make a video about that or if you already have one tag me please

Ответить
@georgekamakia7591
@georgekamakia7591 - 28.11.2023 19:11

great!!, thanks for the tutorial just what i needed

Ответить
@oluwatosinoseni5413
@oluwatosinoseni5413 - 28.11.2023 12:00

Does selenium still need us to install the drivers, i thought its now installed with the selenium 4.10

Ответить
@luisfcocontreras
@luisfcocontreras - 28.11.2023 08:30

You should do an updated selenium series 🔥 would love that, some automation testing for things like SDET or QA

Ответить
@repairstudio4940
@repairstudio4940 - 28.11.2023 05:35

Selenium = fun with Tim 🎉

Ответить
@rverm1000
@rverm1000 - 28.11.2023 04:58

wow thats so cool. i can use that.

Ответить
@thegodstudent
@thegodstudent - 28.11.2023 01:30

Cool

Ответить
@AaronRMG
@AaronRMG - 28.11.2023 01:18

Thanks! I enjoyed learning Selenium. ALTHOUGH, can someone help with my issue? I did exactly what Tim instructed on one computer (ran perfectly), but after sending myself the code to do the same on another computer, I ran into an issue where Selenium states in the terminal that it's "unable to locate or obtain driver for chrome". The driver is the .exe and it's in the same folder.
I'm currently trying to figure it out on this second computer but if someone has any tips, I'd appreciate it.

Ответить
@phaedrus2633
@phaedrus2633 - 28.11.2023 00:47

You go way too fast for this 65-year-old brain, but I understand, a slower pace would be boring for young programmers. But for the first time, I have a handle about the concepts of web scraping. You are using the Selenium Python library to bot web surfing. Too cool!

Ответить
@luisemilioogando
@luisemilioogando - 28.11.2023 00:38

Great one, this is what i'm looking for, Automation, web scraping, bots, pytho automation, Qa automation.. Thank you so much. You are amazing.

Ответить
@MaxTheFireCat
@MaxTheFireCat - 28.11.2023 00:26

I feel nostalgic, I remember watching your selenium series a few years ago

Ответить
@alexicek011
@alexicek011 - 27.11.2023 23:09

It doesn't work for me :( , after launching the browser I see info about accepting or rejecting cookies and I can't get to the search element .Error > selenium.common.exceptions.ElementNotInteractableException: message: element not interactable

Ответить
@itstechshow7747
@itstechshow7747 - 27.11.2023 22:49

You are a genius 🔥
Your effort is remarkable ❤

Ответить
@garrettsmith315
@garrettsmith315 - 27.11.2023 20:35

This is excellent, love everything about this!

Ответить
@degerdi
@degerdi - 27.11.2023 20:20

i get paid a lot of money doing this

Ответить
@dfsed1057
@dfsed1057 - 27.11.2023 20:08

Love your tutorials. I use xpath quite often when trying to find what to click on. In chrome, when you right click and inspect an element, it brings up the page source. Then if you right click the item that you are looking for, you can copy the xpath and paste it in your program as well.

Ответить
@bennikllr5509
@bennikllr5509 - 27.11.2023 20:06

thanks, wanted to do this yesterday and kinda messed it up. (the old videos to selenium and the new driver) now everything works fine <3

Ответить
@nurdinmoha3505
@nurdinmoha3505 - 27.11.2023 19:12

You are the BEST

Ответить
@MrIncredible-mu5ec
@MrIncredible-mu5ec - 27.11.2023 19:09

One question still remains: how to upload Selenium to a remote server and run it? For me, it's #1 reason why I try to avoid using Selenium.

Ответить
@samurai317
@samurai317 - 27.11.2023 19:00

Thank you so much for this.

Ответить
@VoidTailor
@VoidTailor - 27.11.2023 18:57

great content!

Ответить
@fatimanoor2497
@fatimanoor2497 - 27.11.2023 18:56

Thanks Tim bro😊😊😊

Ответить
@avtarsingh79
@avtarsingh79 - 27.11.2023 18:42

Which vs code theme do u use?

Ответить
@richardsifeanyi6766
@richardsifeanyi6766 - 27.11.2023 18:40

Thanks for sharing 🙏

Ответить
@jabirmustafasulaiman5147
@jabirmustafasulaiman5147 - 27.11.2023 18:39

Wonderful project❤

Ответить
@forfreeStory
@forfreeStory - 27.11.2023 18:39

free palestine
if you not pin me you are not a human

Ответить
@guptaswork1695
@guptaswork1695 - 27.11.2023 18:34

TQ for the wonderful content ❤❤❤❤

Ответить
@adhilhabeeb5585
@adhilhabeeb5585 - 27.11.2023 18:34

Bro pin me. Plzz

Ответить