Skip to content

Commit

Permalink
修改错别字
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris committed Mar 28, 2021
1 parent 13c3edc commit d04f071
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/command/cmdline.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

### 2. 创建爬虫

爬虫分为3中,分别为 轻量级爬虫(AirSpider)、分布式爬虫(Spider)以及 批次爬虫 (BatchSpider)
爬虫分为3种,分别为 轻量级爬虫(AirSpider)、分布式爬虫(Spider)以及 批次爬虫(BatchSpider)

命令

Expand Down Expand Up @@ -154,18 +154,18 @@ item为与数据库表的映射,与数据入库的逻辑相关。

```
from feapder import Item
class SpiderDataItem(Item):
"""
This class was generated by feapder.
command: feapder create -i spider_data.
"""
def __init__(self, *args, **kwargs):
# self.id = None
self.title = None
```

若字段有默认值或者自增,则默认注释掉,可按序打开
Expand All @@ -191,7 +191,7 @@ class SpiderDataItem(Item):
**若item字段过多,不想逐一赋值,可通过如下方式创建**

feapder create -i spider_data 1

生成:

```
Expand Down

0 comments on commit d04f071

Please sign in to comment.