From 7a6a2f1ba922b5d30e68047ba011152c4ff89825 Mon Sep 17 00:00:00 2001 From: wnabee <wnabee@lysator.liu.se> Date: Thu, 9 Feb 2023 14:05:16 +0100 Subject: [PATCH] I don't remember, lol, i'm sure it's fine tho --- Seleniumparser.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Seleniumparser.py b/Seleniumparser.py index 2b04804..9d89df1 100644 --- a/Seleniumparser.py +++ b/Seleniumparser.py @@ -39,7 +39,6 @@ def configparser(): else: page = i.replace("\n", "") urllist.append(domain+page) - #print(urllist) return urllist def scraper(urllist): @@ -245,12 +244,12 @@ def postformatter(pagebunch): trustedImagePaths.append(CheckedImagePath) ImageCount+=1 os.remove(f"html/{ImagePath}") - print(f"{CheckedImagePath} exists, removing {ImagePath}") + #print(f"{CheckedImagePath} exists, removing {ImagePath}") else: os.rename(f"html/{ImagePath}", f"html/{CheckedImagePath}") ImagePaths.append(CheckedImagePath) ImageCount+=1 - print(CheckedImagePath) + #print(CheckedImagePath) TitleDate = post[0][1] @@ -269,7 +268,7 @@ def postformatter(pagebunch): if "u=https%3A%2F%2F" in parsedLink.query: parsedLink = urllib.parse.unquote(parsedLink.query) parsedLink = parsedLink.split("=", 1)[-1] - link = parsedLink.split("&h=", 1)[0] + link = parsedLink.split("&h=", 1)[0] Etext = re.escape(text) if text != '' and link != '': #markDownText = f"[{text}]({link})" -- GitLab