Python string operation, extract text between html tags
While it may be possible to parse arbitrary HTML with regular expressions, it’s often a death trap. There are great tools out there for parsing HTML, including BeautifulSoup, which is a Python lib that can handle broken as well as good HTML fairly well. >>> from BeautifulSoup import BeautifulSoup as BSHTML >>> BS = BSHTML(“”” … Read more