python urllib库

发布时间 2023-10-13 14:12:21作者: 全琪俊

模拟浏览器发送请求的库,python自带

Python2: urllib urllib2

Python3: urllib.request urlllib.parse


urlopenurlretrieveurllib.parseresponse
read()getur1()getheaders()getcode()readlines()