Commit 1d39268a authored by liyang's avatar liyang

feat:ins爬取数据img标签去除srcset属性

parent 34eb9bf2
......@@ -100,6 +100,7 @@ def reptile(browser=None, search_word=""):
else:
title = ""
img_soup = BeautifulSoup(item.get_attribute("outerHTML"), "html.parser").find("img")
del img_soup["srcset"]
src = item.get_attribute("src")
else:
# 有视频,图片链接从列表中提取
......
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