Parse and select
Load HTML, then use tag names, classes, or CSS selectors.
from bs4 import BeautifulSoup
soup = BeautifulSoup(html, 'html.parser')
links = soup.select('a.external')
Load HTML, then use tag names, classes, or CSS selectors.
from bs4 import BeautifulSoup
soup = BeautifulSoup(html, 'html.parser')
links = soup.select('a.external')