Selenium Course for Beginners - Web Scraping Bots, Browser Automation, Testing (Tutorial)
Why Stack Overflow recommends it
Stack Overflow users cite it as the tutorial they were following when they hit a Selenium problem on the booking.com project, mostly with locators and clicks.
Recommended by 1 people across 1 different months, 2023 to 2024.
What it is
A three-hour freeCodeCamp course by JimShapedCoding that teaches Selenium with Python by building a booking.com scraping bot. It covers explicit vs implicit waits, sending keys, CSS selectors, structuring a bot project, applying filters, running from a CLI and reporting deals.
What people said
Recommends ZackM · 2023-02 · Stack Overflow · on “Python / Selenium: am I incorrectly creating and instantiating the class? or is the selenium locator incorrect?”
CONTEXT: 1st time asker and long time reader of stack overflow, please let me know of ways if I can improve the question if there are any. I am a beginner with both Python and Selenium and am trying to create a simple application while loosely following along this tutorial: [this video] as a proof of concept for myself. I working with this website [LINK] per the tutorial At one point in the tutorial, around 1:50:40 the teacher creates a class for storing methods in a more organized manner In main.py if we only focus on bot.apply_filters() HTML I am locating [LINK] In the bookingFilters class, I am attempting to locate the above with the bookingFilters.apply_star_rating() and am using the same cod
Cites sas70 · 2023-01 · Stack Overflow · on “Can't click on a button on booking.com with Selenium & Python”
I am scraping a website booking.com to test Selenium. I got some code from this tutorial [this video] . I got stuck to click on a button to work (The currency button or language button on the top of the home page). I tried a couple of CSS selectors and could not make the button clicked. Any help is appreciated. Omar # run.py from booking.booking import Booking with Booking() as bot: print('before land_first_page from run.py') bot.land_first_page(teardown=True) print('after land_first_page from run.py') bot.change_currency() ######################### # booking.py import os import booking.constants as const from selenium import webdriver class Booking(webdriver.Chrome): def __init__(self, driver_pa
Cites Nimrod · 2024-05 · Stack Overflow · on “Selenium/Python - By.CSS_SELECTOR returns "An invalid or illegal selector was specified"”
Hi y'all I been trying to learn Selenium with python by following this beginner course: [this video] Because it is several years old some of the syntax has changed and the webpage they use for the tutorial has changed as well but so far I was still able to get it working and understand what I was doing wrong or when something had changed and I needed to look for new documentation. But I finally hit a wall here. The task was for the program to select two date inside a calendar and the html for that section doesn't seem to have changed a lot from 2021 but I can't get it to work (Last def at the end of main) main import booking.constants as cons import time import os from selenium import webdriver f