python使用bs4库爬取网站数据存储到excel
from urllib.request import urlopenfrom bs4 import BeautifulSoupimport pandas as pdimport reimport pprintclass Crawler(object): def __init__(self, url): self.url = url def parser_page(self): html = urlopen(self.url) .