03 2019 档案
摘要:1.发送请求 import requests response = requests.get('http://httpbin.org/get') response = requests.post('http://httpbin.org/post',data={'name':'tom'}) respo
阅读全文
摘要:urllib包含四个模块 request:发送http请求error:异常处理模块parse:一个工具模块,负责url处理robotparser:用来识别robot.txt 1.发送请求 urllib.request import urllib.request #发送请求 response = ur
阅读全文