Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 59379

每日一搏 | python3——urllib模块的网络爬虫

$
0
0

urllib

urllib模块是python3的URL处理包

其中:

1、urllib.request主要是打开和阅读urls

个人平时主要用的1:

打开对应的URL:urllib.request.open(url)

用urllib.request.build_opener([handler, ...]),来伪装成对应的浏览器


Viewing all articles
Browse latest Browse all 59379

Trending Articles