python 爬虫1:发送请求

import socket import urllib.request import urllib.parse import urllib.error # 一个测试用网址,后面是跟的是http请求方式post或get, 当为post时返回json数据,form内是发送过去数据 url = 'http://httpbin.org/post' headers = { # 假装使用浏览器,默认
相关文章
相关标签/搜索