Guias

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








This selenium tutorial is designed for beginners to learn how to use the python selenium module to perform web scraping, web testing and create website bots. Selenium is an automation framework that allows you to interact with websites using something called a web driver.

How to Fix Pip:
Chrome Web-driver Download:
Selenium Documentation:

Playlist:

Subscribe to my second channel for weekly podcasts!

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

📸 Instagram:
🌎 Website
📱 Twitter:
⭐ Discord:
📝 LinkedIn:
📂 GitHub:
🔊 Podcast:

💵 One-Time Donations:
💰 Patreon:
◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

⭐ Tags ⭐
– Tech With Tim
– Python Tutorials
– Selenium python
– Python selenium tutorial
– Selenium Tutorial for Beginners

⭐ Hashtags ⭐
#python #selenium #webscraping

Link do Vídeo






45 Comentários

  1. SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated UXXXXXXXX escape

    Fixed by putting r before "C:UsersKalebDocumentsDevPythonDriverschromedriver.exe"

    eg PATH = "C:UsersKalebDocumentsDevPythonDriverschromedriver.exe"

  2. Hey Tim, thank you very much for the tutorial, but chrome has different users, can I also specify the user of the chrome for the webpage to be open on?

  3. This no longer works as passing in the executable path has been deprecated in favor of passing in a service object. This is how your code should look now:

    from selenium import webdriver

    from selenium.webdriver.chrome.service import Service

    x=Service('C:Program Files (x86)chromedriver.exe')

    driver = webdriver.Chrome(service=x)

  4. When I create a driver for chrome is gets the warning that I need a chrome service. Not sure how to prevent this deprication.

  5. Please help
    I did everything exactly on on the video, but chrome just opened and closed immediately. It also so a message "DeprecationWarning:…." and "DevTools listening on…"
    How can I fix this problem? Thank you in advance

  6. Hi! Can you please help. How would I do a wait after I manually login, and pass through a few security pages then to the page that I want automate. The program will get to the front page, and then wait for me to login through 4 security pages. And, then it finally lands on the page that I want to automate, and then it will click on "href" or title of the element of the page to open a new tab page.

  7. man I have watched the videos over and over and I still keep seeming to get things wrong I cant even get a browser to pop up.

  8. Really whatever this man teaches sits in my brain very nicely. Thank you so much and I like your vids very much.


  9. import selenium
    This line produced an error for me "ModuleNotFoundError: No module named 'selenium'". From what you said at 4:05, if this line produces an error, I have to make sure that I have the selenium package installed in the correct Python interpreter. How do I do that? Since this is a common error, would you produce a video on how to verify that? I am on Linux (Pop!_OS 21.10).

    I am using Pycharm and it lists Python 3.9 for this project. Python 3.9 is installed in usr/bin. I don't see selenium listed when I ls the directory but when I attempt to 'pip install selenium' in this directory I get a message saying "Requirement already satisfied:….".

    Thanks for including this simple 'import selenium' test line BTW. I was racking my head thinking there was something wrong with my geckodriver or chromedriver. Now I am fairly certain that my problem is that the selenium package is not installed in the correct Python interpreter.
    Thank you for that.

    BTW, the JOIN button does not appear next to your channel name on the iphone youtube app I had to go to Firefox on my desktop to join.

  10. would this work to recover snapchat i lost my old account and snapchat customer service didnt help i changed my # and wasnt able to recover it to change my password 😔

  11. Instead of "pip install selenuim" you should be typing this into your shell: "py -m pip install selenuim". I hope this comment managed to be helpful to somebody.

  12. do you know, how to automate multiple choice questions using selenium python? where the questions change every time the course is opened

  13. To NON-Indians in IT, do you feel discrimination in the field. I would love to go into IT, but I heard there are a lot of Indians who don't treat non-indians well, hire indians over non-indians, and push non-indians out. What's your experience?

  14. its giving me the error: "'pip' is not recognized as an internal or external command,

    operable program or batch file." how do I fix this?

  15. DeprecationWarning: executable_path has been deprecated, please pass in a Service object

  16. Very nice video and easy to digest!

    Edit: not wasting any more time on this video series might have been good a year ago but I can't even get past the first video without running into errors, also it looks like there's not an up to date versions of the googledriver

  17. Great intro to getting started with Selenium. I found the tips on getting started with Python helpful too since I have a new laptop and needed to setup python and configure visual studio code for python.

Comentários estão fechados.