Соскребайте текст всего абзаца в Python
# importing the HTMLSession class
from requests_html import HTMLSession
# create the object of the session
session = HTMLSession()
# url of the page
web_page = 'https://totalhealthmagazine.com/About-Us'
# making get request to the webpage
respone = session.get(web_page)
# getting the html of the page
page_html = respone.html
# finding all p tags
p_tags= page_html.find('p')
# extracting text from all h2 tags
for tag in p_tags:
print(tag.text)Copy Code
Pythonist