Get share count in Buffer/Facebook/Feedly/GitHub/GooglePlus/HatenaBookmark/Linkedin/Pinterest/Pocket
Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
scouter.gemspec

README.md

Scouter Gem Version Build Status Code Climate Test Coverage endorse

Get share count in Buffer/Facebook/Feedly/GitHub/GooglePlus/HatenaBookmark/Linkedin/Pinterest/Pocket/Twitter

Installation

Add this line to your application's Gemfile:

gem 'scouter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install scouter

Usage Command Line

scouter -u [page url]

Usage Ruby Program

require 'scouter'

results, errors = Scouter.get_count('http://google.com')
results.each do |url, service|
  puts url #=> http://google.com
  puts service.buffer           #=> 129
  puts service.facebook         #=> 166458
  puts service.googleplus       #=> 139198
  puts service.hatenabookmark   #=> 13466
  puts service.linkedin         #=> 216
  puts service.pinterest        #=> 1
  puts service.twitter          #=> 1358112
end

if you want to get social count in facebook & twitter

results, errors = Scouter.get_count('http://google.com', [Scouter::Facebook, Scouter::Twitter])
results.each do |url, service|
  puts url #=> http://google.com
  puts service.facebook         #=> 166458
  puts service.twitter          #=> 1358112
end

Correspondence services

* Scouter::Buffer
* Scouter::Facebook
* Scouter::Feedly #=> can get only feed url
* Scouter::Github #=> can get only github.com repository url
* Scouter::GooglePlus
* Scouter::HatenaBookmark
* Scouter::Linkedin
* Scouter::Pinterest
* Scouter::Pocket
* Scouter::Twitter

Contributing

  1. Fork it ( https://github.com/morizyun/scouter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request