summaryrefslogtreecommitdiffstats
path: root/kadomatsu-rss.py
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-10-02 01:50:03 +0100
committergarret <garret@airmail.cc>2022-10-02 01:50:03 +0100
commit2bde259e56626016ced8b71b681276afe4176d4a (patch)
tree6219a4cbf9e9ad155c0bec40b67581658dd4192f /kadomatsu-rss.py
parentb46908e859f3dd14e6432505ec6d6f545a249619 (diff)
downloadkadomatsu-rss-2bde259e56626016ced8b71b681276afe4176d4a.tar.gz
kadomatsu-rss-2bde259e56626016ced8b71b681276afe4176d4a.tar.bz2
kadomatsu-rss-2bde259e56626016ced8b71b681276afe4176d4a.zip
remove requests_cache
will do something proper eventuallyTM, for now it's just clutter
Diffstat (limited to 'kadomatsu-rss.py')
-rwxr-xr-xkadomatsu-rss.py11
1 files changed, 2 insertions, 9 deletions
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(