6

Python爬虫编程思想(148):在PyCharm中使用扩展工具运行Scrapy程序

 1 year ago
source link: https://blog.csdn.net/nokiaguy/article/details/125102180
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Python爬虫编程思想(148):在PyCharm中使用扩展工具运行Scrapy程序

        在上一篇文章中编写了一个execute.py文件用于运行Scrapy程序。其实本质上也是执行scrapy命令来运行Scrapy程序。不过每创建一个Scrapy工程,都要编写一个execute.py文件放到PyCharm工程中用于运行Scrapy程序显得很麻烦,为了在PyCharm中更方便地运行Scrapy程序,可以使用PyCharm扩展工具通过scrapy命令运行Scrapy程序。

        PyCharm扩展工具允许在PyCharm中通过单击菜单项执行外部命令。在Mac OS X系统中单击PyCharm > Preferences菜单项,在弹出的Preferences对话框的左侧单击Tools > External Tools节点,会在右侧显示已经创建的扩展工具列表,如图1所示。

2a480c353fad43c885ff915ce04f9808.png

单击下方的加号按钮会弹出如图2所示的Create Tool对话框。

文章知识点与官方知识档案匹配,可进一步学习相关知识

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK