From 760bb0a3cc794acda7a25b9cbcc4a3301b227117 Mon Sep 17 00:00:00 2001 From: grt1st Date: Thu, 10 Nov 2016 10:08:33 +0800 Subject: [PATCH] Update app3.py --- app3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app3.py b/app3.py index 705b3a4..04970c8 100644 --- a/app3.py +++ b/app3.py @@ -26,7 +26,7 @@ for docs in os.listdir(path): author=xml.xpath("//a[@class='author name ng-binding']")[0].text.replace(' ','').replace(' ','').replace('\n','') - time=xml.xpath("//time[@class='published ng-binding ng-isolate-scope']")[0].text + time=xml.xpath("//time[@class='published ng-binding ng-isolate-scope']")[0].text.replace('/','-') doc=re.findall(pattern1,docs) #doc[0]