From 2bde259e56626016ced8b71b681276afe4176d4a Mon Sep 17 00:00:00 2001 From: garret Date: Sun, 2 Oct 2022 01:50:03 +0100 Subject: remove requests_cache will do something proper eventuallyTM, for now it's just clutter --- kadomatsu-rss.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'kadomatsu-rss.py') diff --git a/kadomatsu-rss.py b/kadomatsu-rss.py index c1fb4ff..29398d9 100755 --- a/kadomatsu-rss.py +++ b/kadomatsu-rss.py @@ -3,22 +3,15 @@ import cgi import cgitb cgitb.enable() -from datetime import datetime, timedelta + +from datetime import datetime import feedgenerator import requests -# import requests_cache from bs4 import BeautifulSoup from os import path -# urls_expire_after = { -# '*?select=all': timedelta(minutes=15), -# '*/detail.php*': -1 -# } - -# requests_cache.install_cache('kadomatsu', urls_expire_after=urls_expire_after) - root = "http://www.toshiki-kadomatsu.jp/information/" feed = feedgenerator.Rss201rev2Feed( -- cgit v1.2.3-70-g09d2