Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
scrapy-doc-zh
提交
b7a71b26
S
scrapy-doc-zh
项目概览
OpenDocCN
/
scrapy-doc-zh
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
scrapy-doc-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b7a71b26
编写于
7月 30, 2019
作者:
W
Wei Jie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
错别字修正
上级
8d9e83b1
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
2 addition
and
2 deletion
+2
-2
docs/5.md
docs/5.md
+2
-2
未找到文件。
docs/5.md
浏览文件 @
b7a71b26
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
在本教程中,我们假定scrapy已经安装在您的系统上。如果还未安装,看
[
安装指南
](
install.html#intro-install
)
.
在本教程中,我们假定scrapy已经安装在您的系统上。如果还未安装,看
[
安装指南
](
install.html#intro-install
)
.
我们将
回
爬
[
quotes.toscrape.com
](
http://quotes.toscrape.com/
)
的网站, 这是一家列出著名作家的名言的网站。
我们将
会
爬
[
quotes.toscrape.com
](
http://quotes.toscrape.com/
)
的网站, 这是一家列出著名作家的名言的网站。
本教程将指导您完成以下任务:
本教程将指导您完成以下任务:
...
@@ -205,7 +205,7 @@ scrapy shell "http://quotes.toscrape.com/page/1/"
...
@@ -205,7 +205,7 @@ scrapy shell "http://quotes.toscrape.com/page/1/"
```
```
运行
`response.css('title')`
的输出结果是
个列表形似
的对象,即为
[
`SelectorList`
](
../topics/selectors.html#scrapy.selector.SelectorList
"scrapy.selector.SelectorList"
)
。这包含一组封装了XML/HTML元素的
[
`Selector`
](
../topics/selectors.html#scrapy.selector.Selector
"scrapy.selector.Selector"
)
对象,并允许您进行进一步的查询,以细化所选内容或提取数据。
运行
`response.css('title')`
的输出结果是
一个列表形式
的对象,即为
[
`SelectorList`
](
../topics/selectors.html#scrapy.selector.SelectorList
"scrapy.selector.SelectorList"
)
。这包含一组封装了XML/HTML元素的
[
`Selector`
](
../topics/selectors.html#scrapy.selector.Selector
"scrapy.selector.Selector"
)
对象,并允许您进行进一步的查询,以细化所选内容或提取数据。
要从以上标题中提取文本,可以执行以下操作:
要从以上标题中提取文本,可以执行以下操作:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录