Git Product home page Git Product logo

hackernewsapi's Introduction

HackerNewsApi Crawler

Based on the API provided by HackerNews at: https://hackernews.api-docs.io/v0/overview/introduction.

The "HackerNewsApi Crawler" is a small tool written in Haskell used to crawl through HackerNews' stories data using their API and to find out who the top x commentors of the top y stories are, along with their number of comments.

By default, the information w.r.t. the top 10 commentors are sought from within the top 30 stories.

To run this tool, simply use stack build, followed by stack run. Note that it may take, on average, about 3 seconds to obtain the information of the top 30 stories, as well as about 3 minutes to obtain the top 10 commentors' information.

This time may thus vary if the input parameters (x, y) are higher.

Technologies used to build this tool:

  1. Haskell
  2. Streamly library (a reactive streams library for Haskell: https://hackage.haskell.org/package/streamly)

Here is a preview of the tool, run from the command line:

HackerNewsApi Crawler Preview

hackernewsapi's People

Contributors

paul-reftu 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.