Project

scouter

0.01
No commit activity in last 3 years
No release in over 3 years
get share count in Buffer/Facebook/Feedly/GooglePlus/HatenaBookmark/Linkedin/Pinterest/Pocket/Twitter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
>= 0
>= 0

Runtime

>= 0
>= 0
 Project Readme

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