Skip to content

Commit

Permalink
Fix google index and regenerate cassettes.
Browse files Browse the repository at this point in the history
  • Loading branch information
blatyo committed Feb 16, 2012
1 parent 0c3fa36 commit a92ac5f
Show file tree
Hide file tree
Showing 8 changed files with 1,160 additions and 438 deletions.
2 changes: 1 addition & 1 deletion lib/page_rankr/indexes/google.rb
Expand Up @@ -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
Expand Down
24 changes: 13 additions & 11 deletions spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml
Expand Up @@ -5,6 +5,8 @@
uri: http://data.alexa.com:80/data?cli=10&dat=snbamz&url=slocourts.net
body:
headers:
user-agent:
- Page Rankr
response: !ruby/struct:VCR::Response
status: !ruby/struct:VCR::ResponseStatus
code: 200
Expand All @@ -13,21 +15,21 @@
content-type:
- text/xml
content-length:
- "2552"
- "2455"
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
\r\n\
<ALEXA VER=\"0.9\" URL=\"slocourts.ca.gov/\" HOME=\"0\" AID=\"=\">\r\n\
<RLS PREFIX=\"http://\" more=\"23\">\n\
<RL HREF=\"www.co.san-bernardino.ca.us/Courts\" TITLE=\"Superior Court, San Bernardino\"/>\n\
<RL HREF=\"www.co.riverside.ca.us/depts/courts\" TITLE=\"Superior Court Of California County Of Riverside\"/>\n\
<RL HREF=\"courts.countyofventura.org/\" TITLE=\"Superior Court, Ventura\"/>\n\
<RL HREF=\"www.co.san-bernardino.ca.us/Courts\" TITLE=\"Superior Court, San Bernardino\"/>\n\
<RL HREF=\"www.ci.sf.ca.us/courts\" TITLE=\"Superior Court, San Francisco\"/>\n\
<RL HREF=\"www.sonomasuperiorcourt.com/\" TITLE=\"Superior Court, Sonoma\"/>\n\
<RL HREF=\"www.solanocourts.com/\" TITLE=\"Superior Court, Solano\"/>\n\
<RL HREF=\"www.sccsuperiorcourt.org/\" TITLE=\"Superior Court, Santa Clara\"/>\n\
<RL HREF=\"www.sbcourts.org/\" TITLE=\"Superior Court, Santa Barbara\"/>\n\
<RL HREF=\"www.slosheriff.org/\" TITLE=\"San Luis Obispo County Sheriff&apos;s Department\"/>\n\
<RL HREF=\"www.slodss.org/\" TITLE=\"San Luis Obispo County Department of Social Services\"/>\n\
<RL HREF=\"www.slocountypwd.org/\" TITLE=\"San Luis Obispo County Department of Public Works and Transportation\"/>\n\
<RL HREF=\"www.slocountyfranchiseadministration.org/\" TITLE=\"San Luis Obispo County Franchise Administration\"/>\n\
<RL HREF=\"www.slocog.org/\" TITLE=\"SLOCOG\"/>\n\
<RL HREF=\"www.sanmateocourt.org/\" TITLE=\"Superior Court, San Mateo\"/>\n\
<RL HREF=\"www.saccourt.com/\" TITLE=\"Superior Court, Sacramento\"/>\n\
<RL HREF=\"www.buttonware.com/\" TITLE=\"www.buttonware.com/\"/>\n\
</RLS>\n\
<SD TITLE=\"A\" FLAGS=\"DMOZ\" HOST=\"slocourts.ca.gov\">\n\
Expand All @@ -39,7 +41,7 @@
<EMAIL ADDR=\"lbatcheldor@co.slo.ca.us\"/>\n\
<LANG LEX=\"en\" CODE=\"us-ascii\"/>\n\
<LINKSIN NUM=\"60\"/>\n\
<SPEED TEXT=\"743\" PCT=\"82\"/>\n\
<SPEED TEXT=\"777\" PCT=\"81\"/>\n\
<REVIEWS AVG=\"5.0\" NUM=\"\"/>\n\
<CHILD SRATING=\"0\"/>\n\
</SD>\n\n\
Expand All @@ -57,9 +59,9 @@
</SITE>\n\
</DMOZ>\n\
<SD>\n\
<POPULARITY URL=\"ca.gov/\" TEXT=\"838\"/>\n\
<REACH RANK=\"889\"/>\n\
<RANK DELTA=\"+81\"/>\n\
<POPULARITY URL=\"ca.gov/\" TEXT=\"843\"/>\n\
<REACH RANK=\"901\"/>\n\
<RANK DELTA=\"+67\"/>\n\
</SD>\n\
</ALEXA>"
http_version: "1.1"
315 changes: 196 additions & 119 deletions spec/fixtures/vcr_cassettes/failure_backlinks.yml

Large diffs are not rendered by default.

219 changes: 147 additions & 72 deletions spec/fixtures/vcr_cassettes/failure_indexes.yml

Large diffs are not rendered by default.

637 changes: 567 additions & 70 deletions spec/fixtures/vcr_cassettes/failure_ranks.yml

Large diffs are not rendered by default.

131 changes: 70 additions & 61 deletions spec/fixtures/vcr_cassettes/success_backlinks.yml

Large diffs are not rendered by default.

66 changes: 37 additions & 29 deletions spec/fixtures/vcr_cassettes/success_indexes.yml

Large diffs are not rendered by default.

204 changes: 129 additions & 75 deletions spec/fixtures/vcr_cassettes/success_ranks.yml

Large diffs are not rendered by default.

0 comments on commit a92ac5f

Please sign in to comment.