python网页请求urllib2模块简单封装代码
对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
下载地址
用户评论