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

@@ -108,23 +108,11 @@ def getRelease(a):
def getTag(html):
try:
result = html.xpath('//strong[contains(text(),"類別")]/../span/a/text()')
total = []
for i in result:
try:
total.append(translateTag_to_sc(i))
except:
pass
return total
return result
except:
result = html.xpath('//strong[contains(text(),"類別")]/../span/text()')
total = []
for i in result:
try:
total.append(translateTag_to_sc(i))
except:
pass
return total
return result
def getCover_small(html, index=0):
# same issue mentioned below,