import scrapy
class TencentHrSpider(scrapy.Spider):
name = ‘book‘# 爬虫名
allowed_domains = [‘paoshuzw.com‘] #允许爬虫范围
start_urls = [‘http://www.paoshuzw.com/xiaoshuodaquan/‘] # 最开始的url地址
def parse(self, response):
# 处理start_urls地址对应的响应
pass
原文:https://www.cnblogs.com/zilinshisi/p/14453146.html