add: 修改请求头配置
parent
2ebf883df7
commit
3bdb9289a5
@ -1,10 +0,0 @@
|
||||
import scrapy
|
||||
|
||||
|
||||
class DouabnTop250Spider(scrapy.Spider):
|
||||
name = "douabn_top250"
|
||||
allowed_domains = ["book.douban.com"]
|
||||
start_urls = ["https://book.douban.com"]
|
||||
|
||||
def parse(self, response):
|
||||
pass
|
@ -0,0 +1,10 @@
|
||||
import scrapy
|
||||
|
||||
|
||||
class DoubanTop250Spider(scrapy.Spider):
|
||||
name = "douban_top250"
|
||||
allowed_domains = ["book.douban.com"]
|
||||
start_urls = ["https://book.douban.com/top250?start=0"]
|
||||
|
||||
def parse(self, response):
|
||||
pass
|
Loading…
Reference in New Issue