码迷,mamicode.com
首页 >  
搜索关键字:requests 、beautifulsoup    ( 5272个结果
python使用post方式上传文件
前言:由于项目需求做的接口测试有上传文件这一要求,在查资料时候发现用requests来做上传文件很简单,所以下了这个库来完成。后续有时候会看看能不能用传统地urllib2来做。首先你要有个requests:https://github.com/kennethreitz/requests然后把它imp...
分类:编程语言   时间:2015-04-27 18:06:26    阅读次数:148
python模拟登陆人人网(通过BeautifulSoup module)
通过BeautifulSoup来登陆人人网。可以通过info = {'email':'','password':''}进行账号密码的初始化,一个BeautifulSoup的简单应用,过一阶段会写一个关于BeautifulSoup框架使用的小手册,欢迎大家关注啊,求各路读者大大多加指导。 #-*- coding:utf-8 -*- import urllib import urllib2 impo...
分类:编程语言   时间:2015-04-27 09:51:13    阅读次数:133
IIS发布WebService成功了,但是不显示参数界面
当您尝试从远程计算机访问 Web 服务时,不会显示“调用”按钮。并且,您会收到以下错误信息:The test form is only available for requests from the local machine解决方法:1.通过编辑 Web 服务所在的 vroot 的 Web.con...
分类:Web程序   时间:2015-04-24 18:19:11    阅读次数:473
Asynchronous Jobs
Because Play is a web application framework, most of the application logic is done by controllers responding to HTTP requests.But sometimes you will n...
分类:其他好文   时间:2015-04-22 13:05:58    阅读次数:146
sysbench 一些选项参数记录
返回信息:transactions: 5724841 (954.14 per sec.) (代表TPS)每秒事务量read/write requests: 103047138 (17174.45 per sec.) (代表QPS)每秒的查询数通用选项: --num-threads=N 创...
分类:其他好文   时间:2015-04-20 16:33:04    阅读次数:196
preflight
Preflighted requestsUnlike simple requests(discussed above), "preflighted" requests first send an HTTP request by theOPTIONSmethod to the resource on ...
分类:其他好文   时间:2015-04-18 19:01:30    阅读次数:121
python安装beautifulsoup
注明:python2.7版本貌似只支持beautifulsoup4.4 正常情况下在dos命令下将beautifulsoup解压在python安装目录下 进入beautifulsoup文件夹  使用python setup.py install安装 我在安装时遇到的问题是使用上述命令抛出错误 出现问题: 由于之前python文件我选择了由spyder打开,所以在此解压安装出...
分类:编程语言   时间:2015-04-18 16:12:47    阅读次数:213
React Native v0.4 发布,用 React 编写移动应用
React Native v0.4 发布,自从 React Native 开源以来,包括超过 12.5k stars,1000 commits,500 issues,380 pull requests 和 100 贡献者,还有35 款插件和1 个 AppStore 应用!直击现场《HTML开发Mac...
分类:移动开发   时间:2015-04-18 16:07:03    阅读次数:180
(十四)使用阿里云oss时连接错误
连接错误: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint 增加节点参数就好 $client = OSSClient::factory(arr...
分类:其他好文   时间:2015-04-18 08:48:08    阅读次数:210
golang 速度限制,time.Tick(time.Second*2) channel,隔2秒后继续执行
package mainimport ( "fmt" "time")func main() { requests := make(chan int, 5) for i := 1; i <= 2; i++ { requests <- i } close...
分类:其他好文   时间:2015-04-17 15:15:35    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!