Good evening. I got the following html code:
<tr>
<td>value:</td>
<td>0</td>
</tr>
This code is part of a full html webpage. I want to parse the value in the second td-tag.
This is my attempt:
pattern = re.compile('<td>value:</td>.*?<td>(.*?)</td>', re.S)
value = pattern.search(source_code).group(1)
source_code
is the full webpage source code.
When I run this code, I get this message:
AttributeError: 'NoneType' object has no attribute 'group'