Python: AttributeError: 'NoneType' object has no attribute 'start' -
got small issue, modified python module match new html template, giving me error if use , in old module working fine can point me have in order use new module , update website template.
well, you're matching different regex:
html_post_start = re.search('<div class="articleline2"></div>', html)
vs
html_post_start = re.search('<div class="excerpt"></div>', html)
one matches, other doesn't (returning none
).
Comments
Post a Comment