From 0dd81abe4813386e8808f6f3496c57c72a858da3 Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 14 Jul 2020 00:22:04 +0200 Subject: [PATCH] Rmemoved [deleted] and [removed] --- cloud.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud.py b/cloud.py index b2912e3..3abf370 100644 --- a/cloud.py +++ b/cloud.py @@ -76,6 +76,8 @@ if args.blow is None: def fetch_comments(comment) -> list: comment_body = re.sub(r'[\[\(]?https?:\/\/[0-9A-Za-z\/\?#\[\]\)@\.!$\&%\-+,;=]+', '', comment.body) + comment_body = comment_body.replace("[deleted]", "") + comment_body = comment_body.replace("[removed]", "") if len(comment.replies) == 0: return [comment_body]