Git Product home page Git Product logo

quotes-crawler's Introduction

Random quotes generator's database filler

https://github.com/gustavobordinho/random-quotes-generator

1. Used tools

  • scrapy - 2.3.0
  • pymongo - 3.11.0
  • python-dotenv - 0.14.0
  • docker - 19.03.12
  • docker-compose - 1.26.2




2. Setting up


2.1. Download and install docker at: https://www.docker.com/products/docker-desktop


P.S: If you are using windows or MacOs, you docker-compose already comes with the default installation. Only follow the step 2.2 if you use linux.

2.2. Download and install docker compose at: https://docs.docker.com/compose/install/


2.3. Create your credentials file (.env):

$ mv .env.example .env

2.4. Edit the created .env file with your own credentials


2.4. Create the docker images:

$ docker-compose build; docker-compose up -d

2.5. Once it is created and running, execute the script to fill your database:

$ docker-compose exec app scrapy runspider quotes.py

P.S: If you let the script reach its end, you will get over 250.200 quotes

quotes-crawler's People

Contributors

castro234 avatar gustavo-bordin avatar

Watchers

 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.