获取网页中超链接PY源码
关于源码的使用
- 使用了request,bs4的库
- 可以用来抓取网页中的超链接(可以设置规则)。并写入到url.txt中。
- 我是用来抓创意工坊的mod超链接的。
只是做个笔记。方便寻找。
各路大佬也可以来指点指点。
1 | from urllib.request import urlopen |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 impdx!
各路大佬也可以来指点指点。
1 | from urllib.request import urlopen |