Hi,
I want write a program which
extract 'Rated PG for some scary moments and mild language' from the following html file and return it as a list .
html file:
<div class="info">
<h5><a href="/mpaa">MPAA</a>:</h5>
<div class="info-content">
Rated PG for some scary moments and mild language. (also 2009 extended version)
</div>
</div>
Why wouldnt this code work ?
mpaaget = re.compile('<h5><a href="/mpaa">MPAA</a>:</h5><div class="info-content">(.*?)</div>')
mpaa = mpaaget.findall(htmlr)