Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get page title by python bs4

from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen("https://www.google.com")
soup = BeautifulSoup(html, 'html.parser')
print(soup.find('title').text)

# Check source for more details 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #page #title #python
ADD COMMENT
Topic
Name
2+3 =