Feed date scraper for Gemini (protocol)
Diffstat (limited to 'zachwalk.py')
-rwxr-xr-xzachwalk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/zachwalk.py b/zachwalk.py
index 7c8680e..2c2c3ea 100755
--- a/zachwalk.py
+++ b/zachwalk.py
@@ -29,7 +29,9 @@ def gnd(fp):
line=line.decode('UTF-8')
if line.strip()[0:2] == '=>':
try:
- date = parse(getdesc(line),fuzzy=True).date()
+ desc =getdesc(line)
+ desc=desc.replace(':',' :') #quirk for parse on drew's capsule
+ date = parse(desc,fuzzy=True).date()
# todo: read lots of these and compare them
return date
except: