码迷,mamicode.com
首页 >  
搜索关键字:requests    ( 4533个结果
Python-第三方库requests详解
Requests 是用Python语言编写,基于 urllib,采用 Apache2 Licensed 开源协议的 HTTP 库。它比 urllib 更加方便,可以节约我们大量的工作,完全满足 HTTP 测试需求。Requests 的哲学是以 PEP 20 的习语为中心开发的,所以它比 urllib...
分类:编程语言   时间:2014-12-16 11:29:07    阅读次数:337
[AngularJS] $http cache
By default your HTTP requests with the $https service in Angular arenotcached. By setting some options, you can turn caching on./** * Created by Answe...
分类:Web程序   时间:2014-12-16 00:55:06    阅读次数:491
70-478 学习收获
web发布包 web package deployment Enabling Cross-Origin Requests in ASP.NET Web API 2 Enabling CRUD Operations in ASP.NET Web API 1
分类:其他好文   时间:2014-12-15 23:32:03    阅读次数:182
访问Tableau自带的PostgreSQL数据库
突然发现公司Tableau服务器的数据库大小急剧增加,因此决定直接连上数据库排查.过程记录如下:最后发现有个http_requests 表体积巨大(7G),本来以为是数据缓存什么的.结果是日志问题o(╯□╰)o. 因为公司用的Tableau版本比较低无法直接查看该表,暂时没动它,不知道会不会影响性能...
分类:数据库   时间:2014-12-14 22:27:53    阅读次数:1441
简单的大众点评爬虫
一个很简单的爬虫,爬取中大周边地点的点评信息。# -*- coding: utf-8 -*-import requestsimport reimport timedef placeSplider(name, star, url): time.sleep(5) res = requests...
分类:其他好文   时间:2014-12-12 22:08:27    阅读次数:288
apache AB压力测试工具参数说明
参数 -n requests???? Number of requests to perform //在测试会话中所执行的请求个数。默认时,仅执行一个请求 -c concurrency Number of multiple requests to make //一次产生的请求个数。默认是一次一个...
分类:Web程序   时间:2014-12-11 16:09:17    阅读次数:197
python查询ip归属地
本来想调用阿里的ip接口查询ip归属地。结果发现阿里的接口非常不给力,主要是不准确,不过是免费的且有地区和ISP的信息。以下是实现代码#-*-coding:utf-8-*- importrequests defcheckip(ip): URL=‘http://ip.taobao.com/service/getIpInfo.php‘ try: r=requests.get(URL,para..
分类:编程语言   时间:2014-12-10 14:30:31    阅读次数:207
linux下web压力测试工具ab使用及详解
APACHE自带的测试工具AB(apache benchmark).在APACHE的bin目录下。格式: ./ab [options] [http://]hostname[:port]/path参数: -n requests Number of requests to perform//在测试会话中...
分类:Web程序   时间:2014-12-10 12:08:42    阅读次数:254
Socket编程实践(7)   --TCP粘包解决方法2
包尾加\n编程实践SYNOPSIS #include #include ssize_t recv(int sockfd, void *buf, size_t len, int flags);与read相比,只能用于套接字文件描述符,而且多了一个flagsFlags常用取值:MSG_OOB(紧急指针,带外数据) This flag requests r...
分类:其他好文   时间:2014-12-05 12:46:02    阅读次数:276
Python 第三方 http 库-Requests 学习
Requests 是用Python语言编写,基于 urllib,采用 Apache2 Licensed 开源协议的 HTTP 库。它比 urllib 更加方便,可以节约我们大量的工作,完全满足 HTTP 测试需求一、安装 Requests通过pip安装Code example:1$ pipinsta...
分类:编程语言   时间:2014-12-04 19:56:10    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!