SyntaxFix
Write A Post
Hire A Developer
Questions
I would suggest going the lxml route and using xpath.
from lxml import etree # data is the variable containing the html data = etree.HTML(data) anchor = data.xpath('//a[@class="title"]/text()')