码迷,mamicode.com
首页 >  
搜索关键字:requests 、beautifulsoup    ( 5272个结果
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
python爬虫实例(urllib&BeautifulSoup)
python2.7.6urllib:发送报文并得到responseBeautifulSoup:解析报文的body(html)#encoding=UTF-8 frombs4importBeautifulSoup fromurllibimporturlopen importurllib list_no_results=[]#没查到的银行卡的list list_yes_results=[]#已查到的银行卡的list #解析报文,以字典..
分类:编程语言   时间:2014-12-05 19:49:25    阅读次数:233
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
网站建设过程中性能优化的34条经验方法
1 、减少HTTP请求数量 (Minimize HTTP Requests) tag:content 80%的用户响应时间被花费在前端,而这其中的绝大多数时间是用于下载页面中的图片、样式表、脚本以及Flash这些组件。减少这些组件的数量就可以减少展示...
分类:Web程序   时间:2014-12-04 18:19:45    阅读次数:313
python处理html的table标签
转载:http://www.xuebuyuan.com/583071.htmlpython处理html的table标签2012年01月06日? 综合? 共 5279字 ? 字号小中大?评论关闭import sysimport csvimport urllib2import BeautifulSoup...
分类:编程语言   时间:2014-12-04 17:12:48    阅读次数:238
PHP 出现 502 解决方案
nginx+php出现502badgateway,一般这都不是nginx的问题,而是由于fastcgi或者php的问题导致的,常见的有以下几种。1.php.ini的memory_limit过小(如果有个别php程序进程需要占用极大内存时这个必须注意)2.php-fpm.conf中max_children或者max_requests设置不合理(设置过小会因..
分类:Web程序   时间:2014-12-04 15:57:30    阅读次数:263
ajax在谷歌浏览器本地文件不能
用ajax加载一个本地的html文件,结果别的浏览器都可以显示,唯独谷歌浏览器不行,错误提示如下:Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, c...
分类:Web程序   时间:2014-12-01 19:06:27    阅读次数:425
python requests的安装与简单运用(转)
我在ubuntu下安装requests的过程(先要安装pip,pip是linux上快速安装python包的软件):Install pip and virtualenv for Ubuntu 10.10 Maverick and newer$ sudo apt-get install python-p...
分类:编程语言   时间:2014-12-01 15:37:00    阅读次数:153
mac/linux 下 selenium 导入python requests包的问题解决
一、安装 Requests 通过pip安装 Code example: 1 $ pip ? ? install ? ? requests 或者,下载代码后安装: Code example: 1 2 3 $ git clone git: ? ? //github ? ? .com ? ? /kennethreitz/requests ?...
分类:编程语言   时间:2014-11-28 01:09:16    阅读次数:317
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!