Feed date scraper for Gemini (protocol)
zachwalk: use input as a template
Zach DeCook 2021-02-10
parent d40a78e · commit 2c1f535
-rwxr-xr-xzachwalk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/zachwalk.py b/zachwalk.py
index aee0458..f2ecee1 100755
--- a/zachwalk.py
+++ b/zachwalk.py
@@ -49,9 +49,11 @@ def main():
desc = getdesc(line)
newestdate = getnewestdate(url)
print(f'=> {url} {newestdate} - {desc}')
+ else:
+ print(line.rstrip())
def getdesc(line):
- return ' '.join(line.split(' ')[2:])
+ return ' '.join(line.split(' ')[2:]).strip()
if __name__ == '__main__':
main()