#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2015-06-01 10:30:06 # @Author : HG (hg0728@qq.com) # @Version : 1.0 import urllib2 import re import os def getHtml(url): #获取html源码 page = urllib2.urlopen(url) html = page.read() return html def urlPages(page): #翻页 url = 'http://www.cnblogs.com/sitehome/p/' + str(page) #print url return url def findList(html): #正则匹配列表 myItems = re.findall('