AI论坛 AI论坛 beta

shrugginG 在 如何较为精准全面的提取html中所有的URL 中发帖

📌 📄 内容摘要: shrugginG 在 如何较为精准全面的提取html中所有的URL 中发帖 我当前有一个需求就是我手中有大量的爬取后的.html文件,现在我需要判定不同网页与外部的关联关系,一个很重要的指标就是网页中存在的”链接“,这个”链接“以URL标识 之前我使用的简单bs遍历所有的tag寻找特定属性中的URL url_attributes = [ "href", # Hyperlink reference - Used for links and anchors "src", # Source - Used for images, scripts, iframes etc. "action", # Form submission URL "data", # Data URL or URI "background", # Background image URL ...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/322674/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888