Coder Social home page Coder Social logo

articlesminer's Introduction

ArticlesMiner

Articles scrapper from the follow sites:

Using

  1. git clone https://github.com/Lpshkn/ArticlesMiner articlesminer
  2. cd articlesminer
  3. docker build -t articlesminer:1.0.0 .
  4. You must to specify Elasticsearch connection parameters as environment values (using database.env, for example) or command line arguments. For example,
    docker run --env-file database.env articlesminer:1.0.0

Arguments and commands

The program has the follow commands:

  • habr - to parsing Habr and saving posts to an Elasticsearch cluster.

Arguments of the Habr command:

  • -host - the host address of the Elasticsearch cluster
  • -port - the port of the Elasticsearch cluster
  • --min_post - the number of the first post to be parsed from (by default, 1)
  • --max_post - the number of the post to which the parsing will be performed (by default, 1000000)
  • -c - the count of parsed articles
  • --concurrent - count of concurrent tasks: it may be speed up the process of parsing (by default, 4)
  • -t - timeout to make request in seconds (by default, 0)

Examples

Using the habr command

The follow command will load 100 posts beginning from the 100000 post id using 8 concurrent tasks and timeout 5 seconds:

docker run --env-file database.env articlesminer:1.0.0 habr -c --min-post 100000 --concurrent 8 -t 5

articlesminer's People

Contributors

lpshkn avatar

Watchers

 avatar

Forkers

bumerung

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.