Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby gem used to get the ranking of a url based on a keyword in Bing, Yahoo or Google
Ruby
tree: e29b1c75c8

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.markdown
Rakefile
VERSION
rankstar.gemspec

README.markdown

Rankstar

Use this gem to calculate the keyword ranking for Bing, Yahoo or Google as follows:

Rankstar.rank(engine, keyword, url) #=> 1

Install

Command Line

gem install rankstar

Bundler

On Gemfile:

gem 'rankstar'

Ruby 2.3.x

On environment.rb

config.gem 'rankstar'

Arguments

  • engine: Any of the following values: [:google, :bing, :yahoo]
  • keyword: The keyword to rank
  • url: The site to look for

Returns

An integer with the rank of the site. If the site is not within the specified limit, it returns nil.

Limit

By default, it will only look on the first 100 results. You can enter a higher value by using the :limit option.

Example:

Rankstar.rank(engine, keyword, url, :limit => 200) #=> 123

TODO

  • Return competitors' ranking
Something went wrong with that request. Please try again.