--刚接触python2天,想高速上手,就写了个爬虫,写完之后,成就感暴增,用起来顺手多了. 1.源代码 #coding=utf-8 import urllib import re class Page(): __slots__ = ('url', 'regex', 'arg' ) def __init__(this ,url ,regex ,arg ): if not arg : arg['download'] = False arg['write'] = False arg['outpath…