-
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已关闭评论