Commit d643337f authored by liyang's avatar liyang

fix:爬取数据入库

parent 115c9564
......@@ -149,6 +149,7 @@ def reptile(browser=None, search_word=""):
span_element = soup.find_all('span')
for span in span_element:
span.extract()
except:
log.debug("删除第一级div失败")
html = soup.prettify().replace('amp;', '')
......
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