python網絡爬蟲及正則表達式

最簡單的爬取網頁內容html #coding=utf-8 import re import urllib # 讀取url內容 def getHtml(url): page = urllib.urlopen(url) html = page.read() return html html = getHtml("http://www.baidu.com/") print ht
相關文章
相關標籤/搜索