1. 首页
  2. 数据库
  3. 其它
  4. python网页请求urllib2模块简单封装代码

python网页请求urllib2模块简单封装代码

上传者: 2020-12-31 11:32:59上传 PDF文件 37.58KB 热度 23次
对python网页请求模块urllib2进行简单的封装。 例子: 复制代码 代码如下:#!/usr/bin/python#coding: utf-8import base64import urllibimport urllib2import time class SendRequest: ”’ This class use to set and request the http, and get the info of response. e.g. set Authorization Type, request tyep.. e.g. get html content, state c
下载地址
用户评论