To answer your tags / comments, yes, you can use them together (Selenium and BeautifulSoup), and no, you cannot directly use BeautifulSoup to execute events (click, etc.). Although I myself never used them together in the same situation, a hypothetical situation could include using Selenium to go to the landing page along a specific path (i.e. click() these options, and then click() button on the next page) and then using BeautifulSoup to read driver.page_source (where driver is the Selenium driver that you created for the βdriveβ in the browser). Since driver.page_source is the HTML page of the page, you can use BeautifulSoup as you used to, playing out any necessary information.
A simple example:
from bs4 import BeautifulSoup from selenium import webdriver
The basic idea is that anytime you need to read the page source, you can pass driver.page_source to BeautifulSoup to read whatever you want.
source share