国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

scrapy 2.3 shell啟動(dòng)外殼

2021-06-08 10:53 更新

要啟動(dòng)碎屑?xì)ぃ梢允褂?nbsp;?shell? 命令如下:

scrapy shell <url>

何處 ?<url>? 是要擦除的URL。

?shell? 也適用于本地文件。如果你想玩一個(gè)網(wǎng)頁(yè)的本地副本,這很方便。 ?shell? 了解本地文件的以下語(yǔ)法::

# UNIX-style
scrapy shell ./path/to/file.html
scrapy shell ../other/path/to/file.html
scrapy shell /absolute/path/to/file.html

# File URI
scrapy shell file:///absolute/path/to/file.html

注解

使用相對(duì)文件路徑時(shí),請(qǐng)顯式并用 ?./? (或) ?../? 相關(guān)時(shí))。 ?scrapy shell index.html? 不會(huì)像人們預(yù)期的那樣工作(這是設(shè)計(jì)上的,而不是錯(cuò)誤)。

因?yàn)?nbsp;?shell? 喜歡HTTP URL而不是文件URI,以及 ?index.html? 在句法上類(lèi)似于 ?example.com? , ?shell? 會(huì)治療 ?index.html? 作為域名并觸發(fā)DNS查找錯(cuò)誤::

$ scrapy shell index.html
[ ... scrapy shell starts ... ]
[ ... traceback ... ]
twisted.internet.error.DNSLookupError: DNS lookup failed:
address 'index.html' not found: [Errno -5] No address associated with hostname.

?shell? 如果文件調(diào)用了 ?index.html? 存在于當(dāng)前目錄中。同樣,要明確。

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)