Serpentor
Simple utility to check search engine result rankings for a given set of keywords. Right now only Google search is supported.
Installation
Add this line to your application's Gemfile:
gem 'serpentor'
And then execute:
$ bundle
Or install it yourself as:
$ gem install serpentor
Usage
Run an individual keyword test:
rank = Serpentor::Rank.check('SOSV', 'sosv.com')
puts "Rank is #{rank.value} (#{rank.url})"
Or configure a bulk keyword test:
config = Serpentor.configure do |config|
config.keywords = ["keyword1", "keyword2"]
config.host = "my-site.com"
config.limit = 10 # only care if result is on first page
end
results = Serpentor.rank
results.each do |res|
puts "Rank for '#{res.keyword}' is #{res.rank || 'N/A'} (#{res.url})"
end
The first 5 pages (50 results) are checked by default. You can further limit that number, for example, if you only care about first page results.
Contributing
- Fork it ( https://github.com/[my-github-username]/serpentor/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