How To Install Scrapy In Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

How To Install Scrapy In Debian, Ubuntu, Arch, Kali, Fedora And Raspbian?

scrapy

Web-crawling framework.

Maintainer: Debian Python Modules Team



Section: python

Install scrapy

  • Debian apt-get install python-scrapy Click to copy
  • Ubuntu apt-get install python-scrapy Click to copy
  • Arch Linux pacman -S scrapy Click to copy
  • Kali Linux apt-get install python-scrapy Click to copy
  • Fedora dnf install python-scrapy Click to copy
  • Raspbian apt-get install python-scrapy Click to copy

Web-crawling framework.

How to use scrapy?

Below are few example commands for scrapy that you can use in the terminal.

Create a project:
scrapy startproject project_nameClick to copy
Create a spider (in project directory):
scrapy genspider spider_name website_domainClick to copy
Edit spider (in project directory):
scrapy edit spider_nameClick to copy
Run spider (in project directory):
scrapy crawl spider_nameClick to copy
Fetch a webpage as scrapy sees it and print source in stdout:
scrapy fetch urlClick to copy
Open a webpage in the default browser as scrapy sees it (disable javascript for extra fidelity):
scrapy view urlClick to copy
Open scrapy shell for url, which allows interaction with the page source in python shell (or ipython if available):
scrapy shell urlClick to copy
To install the latest version of scrapy in your favorite operating system just copy the scrapy installation command from above and paste it into terminal. It will download and install the latest version of scrapy 2026 package in your OS.