Git Product home page Git Product logo

plutus-news-scraper's Introduction

Plutus News Scraper

This is the news component of the Plutus platform.

Getting started

  • Install dependencies with npm install

Commands

  • yarn cli news-scraper:article:scrape --url <url> [-h,--headful][-p,--prevent-close] - to scrape an article
  • yarn cli news-scraper:recent-articles:scrape --news-site <news-site> [-u,--url <url>][-h,--headful][-p,--prevent-close] - to scrape the recent articles
  • yarn cli news-scraper:archived-articles:scrape --news-site <news-site> [-h,--headful][-p,--prevent-close] - to scrape the archived articles
  • yarn cli news-scraper:task-dispatcher:start - to start the task dispatcher
  • yarn cli news-scraper:task-worker:start [-i,--id <id>][--consumed-queues <queues>] - to start the task worker

Database

  • yarn typeorm:run-migrations - to run database migrations
  • yarn typeorm:generate-migration src/Migrations/{MigrationName} - to generate a new migration
  • yarn typeorm:drop-schema - to run drop the database schema

Docker

  • docker build --tag plutus-news-scraper . - to build the container
  • To run any common command, use docker run -it plutus-news-scraper instead of yarn cli, for example: docker run -it plutus-news-scraper news-scraper:recent-articles:scrape --news-site bbc. Please note, that this will not work for commands that are not in the cli script. For those, you'll need to do docker run -it plutus-news-scraper bash and then run the command inside the container.

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.