Commit ad694283 authored by liyang's avatar liyang

fix:ptt debug

parent adaa89cd
......@@ -62,11 +62,10 @@ def reptile(browser=None, search_word=""):
# print(element_list[index_two].text)
try:
re.findall("公告", element_list[index_two].text)
except:
except IndexError:
log.debug(f"正在爬取分类:{type_title}-第{index_two + 1}条")
print("当前连接:"+str(browser.current_url))
print(element_list[index_two].get_attribute("outerHTML"))
print("出现错误:")
print(data[len(data)-1]["title"])
# 标题不包含"公告"和"看板"
if re.findall("公告", element_list[index_two].text) or re.findall("看板", element_list[index_two].text):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment