From 80b8e11912945922d239f8035607770c3a92f105 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 24 Aug 2021 10:09:59 +0200 Subject: [PATCH] update regex for catching author --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d3bd4aa..07f332a 100644 --- a/main.py +++ b/main.py @@ -58,7 +58,7 @@ class Scraper: except: _title = None try: - _author = findall(r"
\n by (.*)", elements[i])[0][-1] + _author = findall(r"(
|)\n\n? by (.*)", elements[i])[0][-1] except: _author = None try: