summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkadomatsu-rss.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kadomatsu-rss.py b/kadomatsu-rss.py
index 29398d9..8a31c14 100755
--- a/kadomatsu-rss.py
+++ b/kadomatsu-rss.py
@@ -29,9 +29,10 @@ class Item:
self.url = url
self.content = content
+s = requests.Session()
def get_soup(url):
- site = requests.get(url)
+ site = s.get(url)
site.encoding = "utf-8"
soup = BeautifulSoup(site.text, "lxml")
return soup