Delete all translate func in all WebCrawlers

This commit is contained in:
unknown
2021-11-06 22:49:19 +08:00
parent 0c4df0130b
commit 41f4743149
8 changed files with 16 additions and 51 deletions

View File

@@ -57,8 +57,8 @@ def getCover_small(html):
result = str(html.xpath('//*[@id="waterfall"]/div/a/div[1]/img/@src')).strip(" ['']")
return result
def getTag(html):
x = html.xpath('/html/head/meta[@name="keywords"]/@content')[0].split(',')
return [translateTag_to_sc(i.strip()) for i in x[2:]] if len(x) > 2 else []
result = html.xpath('/html/head/meta[@name="keywords"]/@content')[0].split(',')
return result
def getSeries(html):
try:
result1 = str(html.xpath('//span[contains(text(),"系列:")]/../span[2]/text()')).strip(" ['']")