Код: Выделить всё
from lxml import html
import requests
link = "https://vcahospitals.com/find-a-hospital/location-directory"
response = requests.get(link, allow_redirects = False) #get page data from server, block redirects
sourceCode = response.content #get string of source code from response
htmlElem = html.document_fromstring(sourceCode) #make HTML element object
print(sourceCode)
Я думаю, что это охватывает все больницы штата, но распечатывается только стоимость одного штата
Подробнее здесь: https://stackoverflow.com/questions/455 ... -from-html
Мобильная версия