复制代码 代码如下:from selenium import selenium class MySpider(CrawlSpider): name = ‘cnbeta’ allowed_domains = [‘cnbeta.com’] start_urls = [‘//www.jb51.net’] rules = ( # Extract links matching ‘category.php’ (but not matching ‘subsection.php’) # and follow links from them (since n