-
python 访问带有web认证的页面
Nov052009python 访问带有web认证的页面,经测试方法一可用! #!/usr/bin/env python# -*- coding: utf-8 -*- #方法一#————————————————————–def request_auth_http(url, User = None, Pass = ...
阅读全文作者:u2 | 分类:OpenSource | 标签:pythonpython 访问带有web认证的页面已关闭评论
-
wget访问带认证的web页面
Nov032009同样的wget语句在不通的机器上居然执行效果不一样,原因是wget版本的问题: wget –help | headGNU Wget 1.9+cvs-stable (Red Hat modified), a non-interactive network retriever.Usage: wget [OPTION]… [URL]… /usr/bin/wget -O /tmp/2hei.txt –http-user=username –http-passwd=12345 ...
阅读全文作者:u2 | 分类:OpenSource | 标签:wgetwget访问带认证的web页面已关闭评论
-
ImportError: No module named xen.xm
Nov032009xen的其中一个虚拟机无法使用,重启xen后发现无法启动。
最后发现原因是升级了python版本所致,升级到了2.6.2:
之前的版本是:python -V
2.4.3降回到原来的python版本,重试OK!
阅读全文ImportError: No module named xen.xm已关闭评论
-
python use BeautifulSoup crawl weather forecast
Sep162009python 使用BeautifulSoup(美汤)来抓取天气预报,简单的例子,只当练手 #!/usr/bin/env python# -*- coding: gb2312 -*- #get weather info from internet#http://weather.china.com.cn/city/54511_full.html import urllib,re,unicodedata,string,sys,refrom BeautifulSoup import * if __name__==”__main__ ...
阅读全文python use BeautifulSoup crawl weather forecast已关闭评论
-
BeautifulSoup has bug in rss tag ‘link’
Sep152009BeautifulSoup 在处理rss页面时发现了如下问题,在rss页面中如果包含<link>标签,BeautifulSoup 处理的不好,具体如下: #!/usr/bin/env python# -*- coding: utf-8 -*- import urllib,re,unicodedata,string,sys,refrom BeautifulSoup import * if __name__==”__main__”: respons ...
阅读全文
-
PYTHON_EGG_CACHE
Sep012009在使用python写的cgi是遇到如下问题Can’t extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 20] Not a directory: ‘/dev/null/.python-eggs’ The Python egg cache directory is currently set to: /dev/null/.python-e ...
阅读全文PYTHON_EGG_CACHE已关闭评论
-
oracle不同版本对jdbc3.0的支持情况
Aug192009Which JDBC drivers support which versions of JDBC?Oracle 9.0.1 supports: * JDBC 2.0 Extensions except for: using both global and local transactions on the same connection. Oracle 9.2.0 supports: * Partial support for JDBC 3.0: transaction savepoints   ...
阅读全文oracle不同版本对jdbc3.0的支持情况已关闭评论
-
nginx+Django+memchached环境搭建备忘
Aug142009系统环境Kernal:Linux 2.6.9-78nginx-0.7.61pcre-7.9Python version: 2.5.4Django-1.1-py2.5mysql-5.0.84flup-1.0.2-py2.5MySQL_python-1.2.3c1-py2.5-linux-i686python_memcached-1.44-py2.5setuptools-0.6c9-py2.5 1、nginx、python、mysql的安装可参考官方及网上的安装文档 2、安装django http://www.djangopr ...
阅读全文nginx+Django+memchached环境搭建备忘已关闭评论
-
nginx 的debug模式
Aug092009编译的时候添加: –with-debug nginx.conf中的配置: error_log logs/error.log debug; #master_process off;daemon off;daemon off; 说明:master_proces ...
阅读全文作者:u2 | 分类:OpenSource | 标签:nginxnginx 的debug模式已关闭评论
-
Your intltool is too old. You need intltool 0.35.0 or later
Aug052009编译rrdtool时,提示这样的错误:checking for intltool >= 0.35.0… 0.31.2 foundconfigure: error: Your intltool is too old. You need intltool 0.35.0 or later. 解决办法如下:wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gztar zxvf intltool-0.40.6.tar.gzc ...
阅读全文作者:u2 | 分类:OpenSource | 标签:rrdtoolYour intltool is too old. You need intltool 0.35.0 or later已关闭评论