更新 javbus.py

修复javbus类别标签抓取时多出的 “多選提交”
This commit is contained in:
SharpX2016
2021-04-28 13:41:12 +08:00
parent dc551de957
commit c9407e2df7

View File

@@ -103,7 +103,7 @@ def getTag(htmlcode): # 获取标签
soup = BeautifulSoup(htmlcode, 'lxml') soup = BeautifulSoup(htmlcode, 'lxml')
a = soup.find_all(attrs={'class': 'genre'}) a = soup.find_all(attrs={'class': 'genre'})
for i in a: for i in a:
if 'onmouseout' in str(i): if 'onmouseout' in str(i) or '多選提交' in str(i):
continue continue
tag.append(translateTag_to_sc(i.get_text())) tag.append(translateTag_to_sc(i.get_text()))
return tag return tag