From dc852443b5738a07c869b612ca3ed6db9d3c3777 Mon Sep 17 00:00:00 2001 From: Andronaco Marco Date: Thu, 13 Jul 2023 11:27:07 +0200 Subject: add custom resolver, bugfix --- Overpost.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Overpost.py') diff --git a/Overpost.py b/Overpost.py index 2448319..de4539a 100644 --- a/Overpost.py +++ b/Overpost.py @@ -3,9 +3,7 @@ from datetime import datetime from re import compile import os import feedparser -from dotenv import load_dotenv from MyResolver import get -load_dotenv() RSS_URL = os.getenv("RSS_URL") or os.path.join(".", "rss.xml") N_LINKS_TO_REMOVE = os.getenv("N_LINKS_TO_REMOVE") or 2 @@ -67,7 +65,7 @@ def parse_entry(entry): # entry = day def handle_url(url): if url.startswith("http"): - return get(url) + return get(url).text else: return url -- cgit 1.4.1-2-gfad0