<commit_before># PageRankr

Provides an easy way to retrieve Google Page Rank, Alexa Rank, and backlink counts.

## Get it!

    gem install PageRankr
    
## Use it!

    require 'page_rankr'

### Backlinks

Backlinks are the result of doing a search with a query like "link:www.google.com". The number of returned results indicates how many sites point to that url.

    PageRankr.backlinks('www.google.com', :google, :bing) #=> {:google=>161000, :bing=>208000000}<commit_msg>Updated doc to point to is_it_popular as an ecample app.<commit_after># PageRankr

Provides an easy way to retrieve Google Page Rank, Alexa Rank, and backlink counts.

Check out a little [web app][1] I wrote up that uses it or look at the [source][2].

[1]: http://isitpopular.heroku.com
[2]: http://github.com/blatyo/is_it_popular

## Get it!

    gem install PageRankr
    
## Use it!

    require 'page_rankr'

### Backlinks

Backlinks are the result of doing a search with a query like "link:www.google.com". The number of returned results indicates how many sites point to that url.

    PageRankr.backlinks('www.google.com', :google, :bing) #=> {:google=>161000, :bing=>208000000}
{'fraction_non_alphanumeric': 0.1056701030927835, 'fraction_numerical': 0.029209621993127148, 'mean_word_length': 4.109649122807017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1705137', 'n_tokens_mistral': 391, 'n_tokens_neox': 354, 'n_words': 143}