摘要:
#python.pyfrom bs4 import BeautifulSoupimport urllib.requestfrom MySqlite import MySqliteglobal g_intidg_intid=0def GetBlogTileAndName(url): res = urllib.request.urlopen(url) html = res.read() res.close() str(html, 'utf-8') soup=BeautifulSoup(html) divs=soup.find_all(attrs={"class" 阅读全文