03 2019 档案

摘要:1.发送请求 import requests response = requests.get('http://httpbin.org/get') response = requests.post('http://httpbin.org/post',data={'name':'tom'}) respo 阅读全文
posted @ 2019-03-25 18:30 FalsePlus 阅读(25) 评论(0) 推荐(0)
摘要:urllib包含四个模块 request:发送http请求error:异常处理模块parse:一个工具模块,负责url处理robotparser:用来识别robot.txt 1.发送请求 urllib.request import urllib.request #发送请求 response = ur 阅读全文
posted @ 2019-03-24 13:05 FalsePlus 阅读(44) 评论(0) 推荐(0)