Skip to content

Commit

Permalink
docs: fix tutorial typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shengchenyang committed Feb 4, 2024
1 parent 8744255 commit e580fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/intro/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class DemoEightSpider(AyuSpider):
yield article_item
```

如您所见,我们的 `Spider` 子类化`AyugeSpider.AyuSpider` 并定义了一些属性和方法:
如您所见,`Spider` 子类化 `AyuSpider` 并定义了一些属性和方法:

- `name`: 标识蜘蛛。在一个项目中必须是唯一的,即不能为不同的Spiders设置相同的名字。
- `start_requests()`: 必须返回一个可迭代的请求(你可以返回一个请求列表或编写一个生成器函数),蜘蛛将从中开始爬行。后续请求将从这些初始请求中依次生成。
Expand Down

0 comments on commit e580fbb

Please sign in to comment.