Update app3.py
This commit is contained in:
2
app3.py
2
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','')
|
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=re.findall(pattern1,docs)
|
||||||
#doc[0]
|
#doc[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user