summary refs log tree commit diff stats
path: root/Overpost.py
diff options
context:
space:
mode:
authorAndronaco Marco <marco.andronaco@olivetti.com>2023-07-13 11:27:07 +0200
committerAndronaco Marco <marco.andronaco@olivetti.com>2023-07-13 11:27:07 +0200
commitdc852443b5738a07c869b612ca3ed6db9d3c3777 (patch)
treeaf0947200025e9ddfa77034979b710a8d46c4ccb /Overpost.py
parent19ce085fa872db7f4f15e230524889ac5322f8a5 (diff)
downloadsunstroke-dc852443b5738a07c869b612ca3ed6db9d3c3777.tar.gz
add custom resolver, bugfix
Diffstat (limited to 'Overpost.py')
-rw-r--r--Overpost.py4
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