Skip to content
Browse files

Merge pull request #16 from priithaamer/fix_google_backlinks

Fix google backlink fetching.
  • Loading branch information...
2 parents 39faa9d + 3936527 commit 0c3fa3682c41ec7d2942f07b4768040022a59f36 @blatyo committed Feb 15, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/page_rankr/backlinks/google.rb
  2. +1 −1 lib/page_rankr/tracker.rb
View
2 lib/page_rankr/backlinks/google.rb
@@ -14,7 +14,7 @@ def params
end
def xpath
- "//div[@id='subform_ctrl']/div[2]/b[3]/text()"
+ "//div[@id='subform_ctrl']/div[2]/text()"
end
end
end
View
2 lib/page_rankr/tracker.rb
@@ -13,7 +13,7 @@ module Tracker
def initialize(site, options = {})
@site = PageRankr::Site(site)
- @options = {:method => method}
+ @options = {:method => method, :headers => {'User-Agent' => 'Page Rankr'}}
@options[:params] = params if respond_to? :params
@options.merge!(options)

0 comments on commit 0c3fa36

Please sign in to comment.
Something went wrong with that request. Please try again.