remove not useful text in source dlsite
This commit is contained in:
@@ -9,6 +9,7 @@ def getTitle(html):
|
|||||||
result = str(html.xpath('/html/head/title/text()')[0])
|
result = str(html.xpath('/html/head/title/text()')[0])
|
||||||
result = result[:result.rfind(' | DLsite')]
|
result = result[:result.rfind(' | DLsite')]
|
||||||
result = result[:result.rfind(' [')]
|
result = result[:result.rfind(' [')]
|
||||||
|
result = result.replace('【HD版】', '')
|
||||||
return result
|
return result
|
||||||
def getActor(html): # //*[@id="center_column"]/div[2]/div[1]/div/table/tbody/tr[1]/td/text()
|
def getActor(html): # //*[@id="center_column"]/div[2]/div[1]/div/table/tbody/tr[1]/td/text()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user