Skip to content

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

License

Notifications You must be signed in to change notification settings

morizyun/scouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages