Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #Find #title #page #python
ADD COMMENT
Topic
Name
3+6 =