python3 urllib模块_urllib — URL 处理模块

### 导航

- [索引](../genindex.xhtml "总目录")

- [模块](../py-modindex.xhtml "Python 模块索引") |

- [下一页](urllib.request.xhtml "urllib.request --- 用于打开 URL 的可扩展库") |

- [上一页](wsgiref.xhtml "wsgiref --- WSGI Utilities and Reference Implementation") |

- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)

- [Python](https://www.python.org/) »

- zh\_CN 3.7.3 [文档](../index.xhtml) »

- [Python 标准库](index.xhtml) »

- [互联网协议和支持](internet.xhtml) »

- $('.inline-search').show(0); |

# [`urllib`](#module-urllib "urllib") --- URL 处理模块

**源代码:** [Lib/urllib/](https://github.com/python/cpython/tree/3.7/Lib/urllib/) \[https://github.com/python/cpython/tree/3.7/Lib/urllib/\]

- - - - - -

`urllib` 是一个收集了多个使用URL的模块的软件包:

- [`urllib.request`](urllib.request.xhtml#module-urllib.request "urllib.request: Extensible library for opening URLs.") 打开和阅读 URLs

- [`urllib.error`](urllib.error.xhtml#module-urllib.error "urllib.error: Exception classes raised by urllib.request.") 包含 [`urllib.request`](urllib.request.xhtml#module-urllib.request "urllib.request: Extensible library for opening URLs.") 抛出的异常

- [`urllib.parse`](urllib.parse.xhtml#module-urllib.parse "urllib.parse: Parse URLs into or assemble them from components.") 用于处理 URL

- [`urllib.robotparser`](urllib.robotparser.xhtml#module-urllib.robotparser "urllib.robotparser: Load a robots.txt file and answer questions about fetchability of other URLs.") 用于解析 `robots.txt` 文件

### 导航

- [索引](../genindex.xhtml "总目录")

- [模块](../py-modindex.xhtml "Python 模块索引") |

- [下一页](urllib.request.xhtml "urllib.request --- 用于打开 URL 的可扩展库") |

- [上一页](wsgiref.xhtml "wsgiref --- WSGI Utilities and Reference Implementation") |

- ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png)

- [Python](https://www.python.org/) »

- zh\_CN 3.7.3 [文档](../index.xhtml) »

- [Python 标准库](index.xhtml) »

- [互联网协议和支持](internet.xhtml) »

- $('.inline-search').show(0); |

© [版权所有](../copyright.xhtml) 2001-2019, Python Software Foundation.

Python 软件基金会是一个非盈利组织。 [请捐助。](https://www.python.org/psf/donations/)

最后更新于 5月 21, 2019. [发现了问题](../bugs.xhtml)?

使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 创建。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值