Project

rankstar

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby library to get the ranking of a url based on a keyword in Bing, Yahoo or Google
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 1.4
>= 1.2.9
 Project Readme

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