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
- Fork it ( https://github.com/morizyun/scouter/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request