diff options
-rwxr-xr-x | kadomatsu-rss.py | 11 |
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( |