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())
...
上一篇:python简单爬虫一


下一篇:Python简单爬虫入门一