Код: Выделить всё
response = requests.get(url).text
soup = BeautifulSoup(response, 'html.parser')
Код: Выделить всё
driver = web_driver()
response = driver.page_source
soup = BeautifulSoup(response, 'html.parser')
Деталь: если возможно, есть способ всегда получать тот же результат независимо от используемого URL.
Подробнее здесь: https://stackoverflow.com/questions/787 ... equests-is