blatyo/page_rankr — Issue #12: Is there a way to check google rank of page (not domain)?
Author: ronald
Created: 2011-11-25 17:52:32+00:00
State: open

Hello,

thanks a lot for the gem!

I'd like to check page rank of a single (sub) page.

This is what I got:
bundle exec rails runner "puts PageRankr::Ranks::Google.new('aws.amazon.com/').run" => 7
bundle exec rails runner "puts PageRankr::Ranks::Google.new('aws.amazon.com/ec2/faqs/').run" => nil

This is what I expected:
bundle exec rails runner "puts PageRankr::Ranks::Google.new('aws.amazon.com/').run" => 7
bundle exec rails runner "puts PageRankr::Ranks::Google.new('aws.amazon.com/ec2/faqs/').run" => 5

The only way I found to get the results is to overriding a method

```ruby
# force loading in development
PageRankr::Site

# do override
def PageRankr::Site(site)
site
end
```

Is there a better way?

By the way: Ruby 1.8.7, PageRankr 3.0.2

Ronald