Skip to content

Commit 88a7053

Browse files
authored
Update README.md
1 parent a8c0c79 commit 88a7053

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,18 @@ asyncpy genspider demo
7676
|PIPELINES|管道|
7777
|MIDDLEWARE|中间件|
7878

79-
如果要启动全局settings的话,需要在spider文件中通过settings_attr 传入settings:
79+
80+
1.1.8版本之前,如果要启动全局settings的话,需要在 spider文件中通过settings_attr 传入settings:
8081
```python
8182
import settings
8283
class DemoSpider(Spider):
8384
name = 'demo'
8485
start_urls = []
8586
settings_attr = settings
8687
```
88+
89+
**新版本中无需手动传入settings。**
90+
8791
- - -
8892
### 自定义settings
8993
如果需要对单个爬虫文件进行settings配置,可以像scrapy一样在爬虫文件中引入 **custom_settings**

0 commit comments

Comments
 (0)