urllib综述

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Snrt_Julier/article/details/79216536
官方文档: https://docs.python.org/3/library/urllib.html


从官方文档中我们可以看出urllib模块使用作处理url。
有四大模块:
urllib.request: 一个url请求模块。
urllib.error: 抛出上一个模块的异常。
urllib.parse: url的转换。
urllib.robotparse: robot.txt文件的转换。

猜你喜欢

转载自blog.csdn.net/Snrt_Julier/article/details/79216536