在terminal里面看到scrapy的版本是1.0.3,为了升级到最新版本,可以采用一行命令即可。
sudo pip install --upgrade scrapy
安装完成之后,查看版本:
☁ Code scrapy --version Scrapy 1.3.0 - no active project Usage: scrapy <command> [options] [args] Available commands: bench Run quick benchmark test commands fetch Fetch a URL using the Scrapy downloader genspider Generate new spider using pre-defined templates runspider Run a self-contained spider (without creating a project) settings Get settings values shell Interactive scraping console startproject Create new project version Print Scrapy version view Open URL in browser, as seen by Scrapy [ more ] More commands available when run from project directory Use "scrapy <command> -h" to see more info about a command
文章的脚注信息由WordPress的wp-posturl插件自动生成