复制代码 代码如下:#-*- coding: UTF-8 -*-”’Created on 2013-12-5 @author: good-temper”’ import urllib2import bs4import time def getPage(urlStr): ”’ 获取页面内容 ”’ content = urllib2.urlopen(urlStr).read() return content def getNextPageUrl(currPageNum): #http://list.jd.com/9987-653-655-