GithubHelp home page GithubHelp logo

scrapy-exercise's Introduction

Static website scraping excercise with Scrapy

This is a Scrapy project to scrape quotes from famous people from http://quotes.toscrape.com. This example was adopted from (here). This project is only meant for educational purposes.

Prequisites

First, a working Python3 installation is required for running Scrapy. Please use the Miniconda Python 3.7 installation for your OS, it can be found here. After Miniconda has been installed successfully, go to the start menu and open 'Anaconda Promt' as administrator.

Prior to running any Scrapy spider, Scrapy has to be installed with the following command:

$ conda install -c conda-forge scrapy 

Or if you already have a working Python installation with pip as package manager:

$ pip install scrapy

Running the spiders

Clone the project and change to the project directory

$ git clone https://github.com/doubleSlashde/scrapy-exercise.git
$ cd scrapy-exercise

You can run a spider using the scrapy crawl command, such as:

$ scrapy crawl quotes_spider

If you want to save the scraped data to a file, you can pass the -o option:

$ scrapy crawl quotes_spider -o quotes.json

scrapy-exercise's People

Contributors

tobias-eberle avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.