Selenium WebDriver with Python: Complete Beginner Course

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 4

  • @dark_legions2227
    @dark_legions2227 2 месяца назад +2

    When we scrape data from a site, how can we identify whether the data is dynamic or static? For example, if it's dynamic, we should use Selenium, and if it's static, we should use BeautifulSoup. How can we identify this and decide which one to use for scraping?

    • @SQAworld3493
      @SQAworld3493  2 месяца назад +3

      Inspect the page source for the presence of data, use developer tools to see if content loads after the initial page load, and check the network tab for XHR requests. If the data is in the raw HTML, it’s static, so you can use BeautifulSoup for scraping; if it's loaded via JavaScript, opt for Selenium to interact with the page

    • @dark_legions2227
      @dark_legions2227 2 месяца назад +1

      @SQAworld3493 thxx

  • @dark_legions2227
    @dark_legions2227 2 месяца назад +1

    Make a video where you fetch data of the Olympic 2024 medalists using web scraping and display it on the frontend using Flask or Streamlit, with a feature for filtering as well. This project will give many ideas, and there isn't a video like this on RUclips.