Update 3.2

This commit is contained in:
Yoshiko2
2020-04-15 15:15:24 +08:00
committed by GitHub
parent 92e631ff66
commit 1f4b7e6633
8 changed files with 191 additions and 72 deletions

View File

@@ -77,7 +77,7 @@ def getDirector(a):
return str(result1 + result2).strip('+').replace("', '",'').replace('"','')
def getOutline(htmlcode):
html = etree.fromstring(htmlcode, etree.HTMLParser())
result = str(html.xpath('//p/text()')).strip(" ['']")
result = str(html.xpath('//p/text()')).strip(" ['']").replace(u'\\n', '').replace("', '', '", '')
return result
def main(number2):
number=number2.upper()
@@ -108,4 +108,5 @@ def main(number2):
return js
#print(htmlcode)
#print(main('SIRO-3607'))
if __name__ == '__main__':
print(main('SIRO-4149'))