2

In a scrapy project with multiple spiders, the tab completion when typing scrapy crawl <spider_name> is painfully slow (~5 seconds). Is there any way to disable tab completion just when trying to run scrapy crawl?

4

1 回答 1

2

命令的参数发生制表符完成的原因scrapy是因为bash_completion/etc/bash_completion.d/scrapy_bash_completion,它是scrapy的一部分。

您可以通过运行来禁用scrapy的制表符完成(或者如果您不想要它,则将complete -r scrapy类似的内容添加到您的文件中)。~/.bashrc

于 2013-07-10T19:39:51.123 回答