diff options
author | Andronaco Marco <marco.andronaco@olivetti.com> | 2023-07-13 11:27:07 +0200 |
---|---|---|
committer | Andronaco Marco <marco.andronaco@olivetti.com> | 2023-07-13 11:27:07 +0200 |
commit | dc852443b5738a07c869b612ca3ed6db9d3c3777 (patch) | |
tree | af0947200025e9ddfa77034979b710a8d46c4ccb /Overpost.py | |
parent | 19ce085fa872db7f4f15e230524889ac5322f8a5 (diff) | |
download | sunstroke-dc852443b5738a07c869b612ca3ed6db9d3c3777.tar.gz |
add custom resolver, bugfix
Diffstat (limited to 'Overpost.py')
-rw-r--r-- | Overpost.py | 4 |
1 files changed, 1 insertions, 3 deletions
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 |