python 简单爬虫diy
简单爬虫直接diy, 复杂的用scrapy
import urllib2 import re from bs4 import BeautifulSoap req = urllib2.Request(url, headers={'User-Agent' : "Magic Browser"}) webpage= urllib2.urlopen(req) soap = BeautifulSoap(webpage.read()) ...
每天一小步,人生一大步!Good luck~