Skip to content

maximusfox/rb-LiRuCounterRecognizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rb-LiRuCounterRecognizer

A simple web api that allows you to get information from the li.ru counter about specified domain in a computer-readable format.

Install dependecies

Install all gems without bundler

grep '^gem' ./Gemfile | cut -d\' -f2 | xargs -n1 sudo gem install

Run

chmod +x ./LiRuCounterRecognizer.rb
./LiRuCounterRecognizer.rb
curl http://localhost:4567/get/gazeta.ru | jq

{
  "error_code": 0,
  "error_message": null,
  "cached": true,
  "info": {
    "month": {
      "hits": 6043716,
      "hosts": 24060033
    },
    "week": {
      "hits": 20824746,
      "hosts": 5650076
    },
    "24_hours": {
      "hits": 3092057,
      "hosts": 983133
    },
    "12_hours": {
      "hits": 509786,
      "hosts": 168742
    },
    "online": {
      "hits": 64956,
      "hosts": 10795
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages