当前位置: 首页 >
BeautifulSoup
-
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 ...
阅读全文