Answers for "Find the title of a page in python"

0

Find the title of a page in python

from requests_html import HTMLSession
session = HTMLSession()
web_page = 'https://edition.cnn.com/'
respone = session.get(web_page)
page_html = respone.html
title= page_html.find('title')[0].text
print(title)Copy Again
Posted by: Guest on April-21-2022

Code answers related to "Find the title of a page in python"

Python Answers by Framework

Browse Popular Code Answers by Language