Beautifulsoup

Set up

from bs4 import BeautifulSoup
import requests

source_start = requests.get(url)
soup = BeautifulSoup(source_start.text, 'lxml')

Removing style tags

[s.extract() for s in soup('style')]

Last updated