最近闲着没事想看小说,找到一个全是南派三叔的小说的网站,决定都下载下来看看,于是动手,在很多QQ群里高手的帮助下(本人正则表达式很烂,程序复杂的正则都是一些高手指导的),花了三四天写了一个脚本需要 BeautifulSoup 和 requests 两个库(我已经把注释写得尽量详细)这个程序的执行速度...
分类:
编程语言 时间:
2014-11-07 09:48:22
阅读次数:
227
补充说明: ????当前环境是在windows环境下 ????python版本是:python 3.4. 刚开始学习python,一边看书一边论坛里阅读感兴趣的代码,?http://www.oschina.net/code/snippet_1406266_43470 的代码运行报错...
分类:
其他好文 时间:
2014-11-06 13:12:11
阅读次数:
156
import?os
import?re
import?time
import?fcntl
import?logging
import?pygtk
pygtk.require(‘2.0‘)
import?gtk
import?gobject
import?webkit
import?requests
import?json
?
?
HOME?=?os.getenv...
分类:
系统相关 时间:
2014-11-04 20:00:52
阅读次数:
433
1: Explain? how? a? web?? application? work ? A web application resides in the server and servers the client‘s requests over internet. The client? access the web page using? browser from h...
分类:
Web程序 时间:
2014-11-03 11:39:00
阅读次数:
290
1.安装1 git clone git://github.com/kennethreitz/requests.git2 cd requests3 python setup.py install2.上点威力(GET)1 >>> import requests2 >>> url = 'http://di...
分类:
编程语言 时间:
2014-11-02 20:59:08
阅读次数:
243
Package httpserves HTTP requests using any value that implementshttp.Handler:package httptype Handler interface { ServeHTTP(w ResponseWriter, r *Re...
分类:
Web程序 时间:
2014-10-29 00:06:07
阅读次数:
226
// Bind script tag hack transportjQuery.ajaxTransport( "script", function(s) { // This transport only deals with cross domain requests if ( s.crossD.....
分类:
Web程序 时间:
2014-10-26 19:46:30
阅读次数:
261
上一篇中仅仅是实现了一个非常easy的http client功能,request还提供了keep alive, SSL, 多文件上传,cookie 管理功能,http requests头管理等丰富的功能,仅仅要你浏览器实现的功能,requests里面都支持。#!/usr/bin/env python...
分类:
编程语言 时间:
2014-10-24 18:15:54
阅读次数:
198
快速上手迫不及待了吗?本页内容为如何入门Requests提供了很好的指引。其假设你已经安装了Requests。如果还没有, 去安装一节看看吧。首先,确认一下:Requests已安装Requests是最新的让我们从一些简单的示例开始吧。发送请求使用Requests发送网络请求非常简单。一开始要导入Re...
分类:
编程语言 时间:
2014-10-22 00:47:11
阅读次数:
272
在redis2.8版本中有一个tcp-backlog配置, 说明如下:# TCP listen() backlog.## In high requests-per-second environments you need an high backlog in order# to avoid slow...
分类:
其他好文 时间:
2014-10-16 01:22:21
阅读次数:
497