update regex for catching author
This commit is contained in:
parent
99d6e09725
commit
80b8e11912
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -58,7 +58,7 @@ class Scraper:
|
||||||
except:
|
except:
|
||||||
_title = None
|
_title = None
|
||||||
try:
|
try:
|
||||||
_author = findall(r"<br />\n<i class=\"icon-user\"></i> by <a href=\"\./memberlist\.php\?mode=viewprofile&u=\d+\"( style=\"color: #.*;\" class=\"username-coloured\")?>(.*)</a>", elements[i])[0][-1]
|
_author = findall(r"(<br />|</strong>)\n\n?<i class=\"icon-user\"></i> by <a href=\"\./memberlist\.php\?mode=viewprofile&u=\d+\"( style=\"color: #.*;\" class=\"username-coloured\")?>(.*)</a>", elements[i])[0][-1]
|
||||||
except:
|
except:
|
||||||
_author = None
|
_author = None
|
||||||
try:
|
try:
|
||||||
|
|
Reference in a new issue