diff --git a/InvidiousFeedProxy.py b/InvidiousFeedProxy.py old mode 100644 new mode 100755 diff --git a/ShioriFeed.py b/ShioriFeed.py old mode 100644 new mode 100755 index 5acef5d..75353f0 --- a/ShioriFeed.py +++ b/ShioriFeed.py @@ -1,25 +1,46 @@ #!/usr/bin/env python3 + +# *----------------------------------------------------------------------* # +# | [ ShioriFeed 🔖 ] | # +# | Simple service for getting an Atom/RSS feed from your Shiori profile | # +# | v. 2023-02-13-r2, OctoSpacc | # +# *----------------------------------------------------------------------* # + +# *---------------------------------* # +# | Configuration | # +# *---------------------------------* # +Host = ('localhost', 8176) +Debug = True +# *---------------------------------* # + +# External Requirements: urllib3 + +# *-------------------------------------------------------------------------* # + import traceback import json from base64 import urlsafe_b64decode, urlsafe_b64encode -from html import escape as HTMLEscape +from html import escape as HtmlEscape from http.server import HTTPServer, BaseHTTPRequestHandler from socketserver import ThreadingMixIn from urllib.request import urlopen, Request from urllib.error import HTTPError, URLError import threading -# Requirements: urllib3 # Usage: http[s]:///http[s]://// -Host = ('localhost', 8176) -HomeTemplate = ''' +HomeTemplate = '''\ - + - ShioriFeed + + ShioriFeed 🔖 + + + -

ShioriFeed

-

- Enter details about your account on a +

ShioriFeed 🔖

+

+ Enter the details of your account on a Shiori - server to get an RSS feed link. + server to get an Aotm/RSS feed link.


- {{PostResult}} -

-

-