小编use*_*766的帖子

我如何使用scrapy shell在url上使用参数

我想废弃工作网站.我想在scrapy shell中做一些测试.

因此,如果我键入此

scrapy shell http://www.seek.com.au

然后,如果我打字

from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor

然后它工作正常

但如果我这样做

scrapy shell http://www.seek.com.au/JobSearch?DateRange=31&SearchFrom=quick&Keywords=python&nation=3000
Run Code Online (Sandbox Code Playgroud)

然后,如果我打字

from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor

然后它说无效的bash命令from并退出scrapy作业并作为停止的作业进入屏幕

>>> from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
-bash: from: command not found

[5]+  Stopped                 scrapy shell http://www.seek.com.au/JobSearch?DateRange=31
[7]   Done                    Keywords=php
Run Code Online (Sandbox Code Playgroud)

python django scrapy

5
推荐指数
1
解决办法
2282
查看次数

标签 统计

django ×1

python ×1

scrapy ×1