Update app3.py
This commit is contained in:
3
app3.py
3
app3.py
@@ -22,7 +22,10 @@ for docs in os.listdir(path):
|
||||
|
||||
xml=etree.HTML(html)
|
||||
|
||||
if(xml.xpath("//title")):
|
||||
title=xml.xpath("//title")[0].text.replace(pattern0,'')
|
||||
else:
|
||||
continue
|
||||
|
||||
author=xml.xpath("//a[@class='author name ng-binding']")[0].text.replace(' ','').replace(' ','').replace('\n','')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user