Feed date scraper for Gemini (protocol)
zachwalk: use input as a template
| -rwxr-xr-x | zachwalk.py | 4 |
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() |