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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -