Coder Social home page Coder Social logo

gutenberg-botany-spider's Introduction

Project Name: gutenberg-botany-spider

Scrapy spider that scrapes project gutenberg for ebooks from the search term botany.

Setting Up

This project uses Python 3.7+ Follow these steps to setup your Python environment.

Creating a Virtual Environment

Python3 comes with built-in support for virtual environments (via the venv module). You can create a virtual environment using the following command:

python3 -m venv env

Activating the Virtual Environment

Before you can start installing or using packages in your virtual environment you’ll need to activate it. Activating a virtual environment will put the virtual environment-specific python and pip executables into your shell’s PATH.

On macOS and Linux:

source env/bin/activate

On Windows:

.\env\Scripts\activate

You’ll know your virtual environment is activated once the name of it shows up on the left side of the terminal line (e.g. (env)).

Installing Dependencies

Once you've activated your virtual environment, you can install the project dependencies from the requirements.txt file:

pip install -r requirements.txt

Running the Project

You can modify this to suite your needs, however this worked for me.

scrapy crawl gutenberg-botany-spider -o gutenberg-botany-spider.csv -L DEBUG

I'm using icecream for simple debugging.

License

No license, whatever python and scrapy is.

gutenberg-botany-spider's People

Contributors

bdmorin avatar

Watchers

 avatar  avatar

Forkers

acmorin912

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.