码迷,mamicode.com
首页 >  
搜索关键字:requests 、beautifulsoup    ( 5272个结果
BeautifulSoup解决中文网页乱码
以下代码,在执行结果中的中文出现乱码。from bs4 import BeautifulSoupimport urllib2request = urllib2.Request('http://www.163.com')response = urllib2.urlopen(request)html_d...
分类:Web程序   时间:2014-12-16 16:30:13    阅读次数:199
PHP与cURL
CURL PHP API comes with a wide array of options and features. This allows users to fine tune the requests and the way that the responses are handled.P...
分类:Web程序   时间:2014-12-16 11:35:30    阅读次数:163
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
用python的BeautifulSoup分析html
序言 之前用python爬取网页的时候,一直用的是regex或者自带的库sgmllib里的SGMLParser。但是遇到复杂一点的情况时,SGMLParser往往就不那么给力了!(哈,难道说我 too native了?毕竟beautifulSoup是继承sgmlparser的么~)所以,我寻寻觅觅....
分类:编程语言   时间:2014-12-15 16:46:54    阅读次数:263
访问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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!