Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Boris-code/feapder
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris-code committed Jun 7, 2022
2 parents e171cf2 + dcf399d commit e1b47a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage/Spider.md
Original file line number Diff line number Diff line change
@@ -125,7 +125,7 @@ Item详细介绍参考[Item](source_code/Item.md)

可以看到,代码中 `to_DebugSpider`方法可以将原爬虫直接转为debug爬虫,然后通过传递request参数抓取指定的任务。

通常结合断点来进行调试,bebug模式下,运行产生的数据默认不入库
通常结合断点来进行调试,debug模式下,运行产生的数据默认不入库

除了指定request参数外,还可以指定`request_dict`参数,request_dict接收字典类型,如`request_dict={"url":"http://www.baidu.com"}`, 其作用于传递request一致。request 与 request_dict 二者选一传递即可

@@ -192,4 +192,4 @@ if __name__ == "__main__":

## 9. 完整的代码示例

[https://github.com/Boris-code/feapder/tree/master/tests/spider](https://github.com/Boris-code/feapder/tree/master/tests/spider)
[https://github.com/Boris-code/feapder/tree/master/tests/spider](https://github.com/Boris-code/feapder/tree/master/tests/spider)

0 comments on commit e1b47a9

Please sign in to comment.