September 2018
Intermediate to advanced
398 pages
11h 32m
English
>>> import requests>>> from bs4 import BeautifulSoup
>>> URL = 'http://www.columbia.edu/~fdc/sample.html'>>> response = requests.get(URL)>>> response<Response [200]>
>>> page = BeautifulSoup(response.text, 'html.parser')
>>> page.title<title>Sample Web Page</title>>>> page.title.string'Sample Web Page'
>>> page.find_all('h3')[<h3><a name="contents">CONTENTS</a></h3>, <h3><a name="basics">1. Creating a Web Page</a></h3>, <h3><a name="syntax">2. ...Read now
Unlock full access