Skip to content

haskellbr/hackage-downloads

Repository files navigation

hackage-downloads

Build Status Docker Pulls


A little script that pulls Hackage download counts and exposes them as JSON.

Command-line

$ hackage-downloads
# ...
{"name":"goal-simulation","href":"/package/goal-simulation","downloads":2}
{"name":"http-client-request-modifiers","href":"/package/http-client-request-modifiers","downloads":2}
{"name":"selenium-server","href":"/package/selenium-server","downloads":2}

HTTP API

$ hackage-downloads-api &
Spock is running on port 3000
Scrapping Hackage...
$ curl -L -s localhost:3000
[
  # ...
  {"name":"goal-simulation","href":"/package/goal-simulation","downloads":2},
  {"name":"http-client-request-modifiers","href":"/package/http-client-request-modifiers","downloads":2},
  {"name":"selenium-server","href":"/package/selenium-server","downloads":2}
]

Binary Distribution

You can download binary distributions for both these executables for Linux 64-bits from S3 which are built and uploaded by the CI system from these links:

Docker Distribution

The repository has a Makefile which offers a simple way of creating and publishing a Docker image for both executables (though mostly meant to run the web service), which should be available here.

$ docker run -d -it -p 3000:3000 haskellbr/hackage-downloads
$ curl `docker-machine ip default`:3000
# ...

At the moment the image is based on Ubuntu and rather large.

License

This code is licensed under the MIT license. For more information please refer to the LICENSE file.

About

A little script that pulls Hackage download counts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published