更新 javbus.py
修复javbus类别标签抓取时多出的 “多選提交”
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user