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:
|
||||
_title = None
|
||||
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:
|
||||
_author = None
|
||||
try:
|
||||
|
|
Reference in a new issue