PageRankr 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/PageRankr.gemspec +1 -1
- data/README.md +6 -6
- data/lib/page_rankr.rb +3 -2
- data/lib/page_rankr/backlink.rb +6 -0
- data/lib/page_rankr/backlinks/alexa.rb +1 -1
- data/lib/page_rankr/backlinks/bing.rb +1 -1
- data/lib/page_rankr/backlinks/google.rb +2 -2
- data/lib/page_rankr/backlinks/yahoo.rb +4 -3
- data/lib/page_rankr/index.rb +6 -0
- data/lib/page_rankr/indexes.rb +1 -0
- data/lib/page_rankr/indexes/bing.rb +1 -1
- data/lib/page_rankr/indexes/google.rb +2 -2
- data/lib/page_rankr/indexes/yahoo.rb +21 -0
- data/lib/page_rankr/ranks/alexa_global.rb +6 -2
- data/lib/page_rankr/ranks/alexa_us.rb +6 -2
- data/lib/page_rankr/ranks/google.rb +7 -2
- data/lib/page_rankr/site.rb +65 -14
- data/lib/page_rankr/tracker.rb +8 -0
- data/lib/page_rankr/version.rb +1 -1
- data/out.html +405 -0
- data/spec/edge_cases_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml +12 -12
- data/spec/fixtures/vcr_cassettes/failure_backlinks.yml +492 -99
- data/spec/fixtures/vcr_cassettes/failure_indexes.yml +493 -58
- data/spec/fixtures/vcr_cassettes/failure_ranks.yml +22 -22
- data/spec/fixtures/vcr_cassettes/success_backlinks.yml +70 -80
- data/spec/fixtures/vcr_cassettes/success_indexes.yml +72 -53
- data/spec/fixtures/vcr_cassettes/success_ranks.yml +96 -83
- data/spec/page_rankr_spec.rb +15 -9
- metadata +65 -6
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://data.alexa.com:80/data?cli=10&dat=snbamz&url=
|
5
|
+
uri: http://data.alexa.com:80/data?cli=10&dat=snbamz&url=google.com
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
response: !ruby/struct:VCR::Response
|
@@ -10,10 +10,10 @@
|
|
10
10
|
code: 200
|
11
11
|
message: OK
|
12
12
|
headers:
|
13
|
-
content-length:
|
14
|
-
- "2238"
|
15
13
|
content-type:
|
16
14
|
- text/xml
|
15
|
+
content-length:
|
16
|
+
- "2238"
|
17
17
|
body: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\
|
18
18
|
\r\n\
|
19
19
|
<ALEXA VER=\"0.9\" URL=\"google.com/\" HOME=\"0\" AID=\"=\">\r\n\
|
@@ -40,9 +40,9 @@
|
|
40
40
|
<CLAIMED DATE=\"2011-09-14T16:30:40Z\"/>\n\
|
41
41
|
<ALEXAPRO TIER=\"intro\"/>\n\
|
42
42
|
<LANG LEX=\"en\"/>\n\
|
43
|
-
<LINKSIN NUM=\"
|
44
|
-
<SPEED TEXT=\"
|
45
|
-
<REVIEWS AVG=\"4.5\" NUM=\"
|
43
|
+
<LINKSIN NUM=\"4501407\"/>\n\
|
44
|
+
<SPEED TEXT=\"1583\" PCT=\"43\"/>\n\
|
45
|
+
<REVIEWS AVG=\"4.5\" NUM=\"820\"/>\n\
|
46
46
|
<CHILD SRATING=\"0\"/>\n\
|
47
47
|
<ASSOCS>\n\
|
48
48
|
<ASSOC ID=\"googlecom\"/></ASSOCS>\n\
|
@@ -77,23 +77,23 @@
|
|
77
77
|
code: 200
|
78
78
|
message: OK
|
79
79
|
headers:
|
80
|
-
|
81
|
-
-
|
80
|
+
content-type:
|
81
|
+
- text/html; charset=utf-8
|
82
|
+
content-language:
|
83
|
+
- en-us
|
82
84
|
server:
|
83
85
|
- Apache
|
86
|
+
date:
|
87
|
+
- Mon, 26 Dec 2011 18:23:39 GMT
|
88
|
+
content-length:
|
89
|
+
- "26848"
|
84
90
|
vary:
|
85
91
|
- Accept-Language,Cookie,User-Agent
|
86
|
-
content-length:
|
87
|
-
- "27276"
|
88
|
-
content-language:
|
89
|
-
- en-us
|
90
|
-
content-type:
|
91
|
-
- text/html; charset=utf-8
|
92
92
|
body: |
|
93
93
|
<!DOCTYPE html>
|
94
94
|
<!-- HOSTNAME: prodweb45
|
95
95
|
DEBUG: False
|
96
|
-
VERSION:
|
96
|
+
VERSION: 20111130153000
|
97
97
|
COOKIE_DOMAIN: .compete.com -->
|
98
98
|
|
99
99
|
|
@@ -136,25 +136,27 @@
|
|
136
136
|
|
137
137
|
|
138
138
|
|
139
|
-
<script src="http://media.compete.com/site_media/thirdparty/modernizr-1.6.min.ver-
|
139
|
+
<script src="http://media.compete.com/site_media/thirdparty/modernizr-1.6.min.ver-20111130153000.js"></script>
|
140
140
|
|
141
141
|
<link rel="shortcut icon" href="/favicon.ico" />
|
142
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/universal/framework.ver-
|
143
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/c/widgets.ver-
|
142
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/universal/framework.ver-20111130153000.css" media="all" charset="utf-8" />
|
143
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/c/widgets.ver-20111130153000.css" media="all" charset="utf-8" />
|
144
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-compete.ver-20111130153000.css" media="screen" />
|
145
|
+
|
144
146
|
|
145
147
|
|
146
148
|
|
147
149
|
|
148
150
|
|
149
151
|
|
150
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/free/master_free.ver-
|
151
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/dropdown.ver-
|
152
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/popup_help.ver-
|
153
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/jquery/theme/ui.all.ver-
|
154
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/universal/jquery.autocomplete.ver-
|
155
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/jquery.mcdropdown.ver-
|
156
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/tooltip.ver-
|
157
|
-
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/css/superfish.ver-
|
152
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/free/master_free.ver-20111130153000.css" media="all" charset="utf-8" />
|
153
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/dropdown.ver-20111130153000.css" media="all" />
|
154
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/popup_help.ver-20111130153000.css" media="all" />
|
155
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/jquery/theme/ui.all.ver-20111130153000.css" media="all" />
|
156
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/universal/jquery.autocomplete.ver-20111130153000.css" media="all" />
|
157
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/jquery.mcdropdown.ver-20111130153000.css" media="all" />
|
158
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/css/www/tooltip.ver-20111130153000.css" media="all" />
|
159
|
+
<link rel="stylesheet" type="text/css" href="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/css/superfish.ver-20111130153000.css" media="all" />
|
158
160
|
|
159
161
|
|
160
162
|
|
@@ -185,7 +187,7 @@
|
|
185
187
|
|
186
188
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>
|
187
189
|
|
188
|
-
<script>!window.jQuery && document.write(unescape('%3Cscript src="http://media.compete.com/site_media/thirdparty/jquery/jquery-1.5.2.min.ver-
|
190
|
+
<script>!window.jQuery && document.write(unescape('%3Cscript src="http://media.compete.com/site_media/thirdparty/jquery/jquery-1.5.2.min.ver-20111130153000.js"%3E%3C/script%3E'));</script>
|
189
191
|
|
190
192
|
|
191
193
|
<script type="text/javascript">
|
@@ -199,6 +201,10 @@
|
|
199
201
|
</script>
|
200
202
|
|
201
203
|
<script type="text/javascript">
|
204
|
+
|
205
|
+
var $c = $c || {};
|
206
|
+
$c.globals = $c.globals || {};
|
207
|
+
|
202
208
|
var base_site = 'http://www.compete.com',
|
203
209
|
blog_site = 'http://blog.compete.com',
|
204
210
|
compete_pro_upgrade = 'http://app.compete.com/account-settings/plan-options/',
|
@@ -215,7 +221,11 @@
|
|
215
221
|
snapshot_site = 'http://siteanalytics.compete.com',
|
216
222
|
toolbar_site = '',
|
217
223
|
help_site = 'http://help.compete.com',
|
218
|
-
versionify_string = '
|
224
|
+
versionify_string = '20111130153000';
|
225
|
+
|
226
|
+
// from now on, add your globals to $c.globals ~fc 10/26/2011
|
227
|
+
$c.globals.user_source_panel = '';
|
228
|
+
|
219
229
|
</script>
|
220
230
|
|
221
231
|
|
@@ -225,56 +235,60 @@
|
|
225
235
|
<script type="text/javascript" src="/jsi18n/custom"></script>
|
226
236
|
|
227
237
|
|
228
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5-shim-0.0.4.min.ver-
|
229
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5_getter_setter_api.ver-
|
230
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/backbone/underscore.ver-
|
231
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/backbone/backbone.ver-
|
232
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/
|
233
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/
|
234
|
-
|
235
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/
|
238
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5-shim-0.0.4.min.ver-20111130153000.js"></script>
|
239
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/lang/es5_getter_setter_api.ver-20111130153000.js"></script>
|
240
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/backbone/underscore.ver-20111130153000.js"></script>
|
241
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/backbone/backbone.ver-20111130153000.js"></script>
|
242
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.ver-20111130153000.js"></script>
|
243
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.ver-20111130153000.js"></script>
|
244
|
+
|
245
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/Backbone.ver-20111130153000.js"></script>
|
246
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/widgets.ver-20111130153000.js"></script>
|
247
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/utils.ver-20111130153000.js"></script>
|
248
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/mbox.ver-20111130153000.js"></script>
|
249
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery.text-overflow.ver-20111130153000.js"></script>
|
236
250
|
|
237
251
|
|
238
252
|
|
239
253
|
<script type="text/javascript" charset="utf-8">
|
240
|
-
var s_account = '
|
254
|
+
var s_account = 'competefree,competemaster';
|
241
255
|
</script>
|
242
256
|
|
243
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/omniture__s_code.ver-
|
257
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/omniture__s_code.ver-20111130153000.js" charset="utf-8"></script>
|
244
258
|
|
245
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/thirdparty_analytics.ver-
|
259
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/thirdparty_analytics.ver-20111130153000.js"></script>
|
246
260
|
|
247
261
|
|
248
262
|
|
249
263
|
|
250
264
|
|
251
265
|
|
252
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/prototype/prototype-1.5.0-compressed.ver-
|
266
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/prototype/prototype-1.5.0-compressed.ver-20111130153000.js"></script>
|
253
267
|
|
254
268
|
|
255
269
|
|
256
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/util.ver-
|
257
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/jquery-ui-compete-1.6rc6.min.ver-
|
258
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/jquery.mcdropdown.ver-
|
259
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/jquery.bgiframe.ver-
|
260
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/tooltip.ver-
|
261
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/tooltip.dynamic.ver-
|
262
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/tooltip.compete.ver-
|
263
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/json2.ver-
|
264
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util.ver-
|
265
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util_format.ver-
|
266
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/dropdown.ver-
|
267
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/master.ver-
|
268
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/popup_help.ver-
|
269
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.autocomplete.pack.ver-
|
270
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.competeutils.ver-
|
271
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.cookie.ver-
|
272
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.html5-placeholder-shim.ver-
|
273
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/main_nav.ver-
|
274
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/NumberFormat-1.5.4.ver-
|
275
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/number_formatter.ver-
|
270
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/util.ver-20111130153000.js"></script>
|
271
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/jquery-ui-compete-1.6rc6.min.ver-20111130153000.js"></script>
|
272
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/jquery.mcdropdown.ver-20111130153000.js"></script>
|
273
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/jquery.bgiframe.ver-20111130153000.js"></script>
|
274
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/tooltip.ver-20111130153000.js"></script>
|
275
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/tooltip.dynamic.ver-20111130153000.js"></script>
|
276
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/jquery/tooltip.compete.ver-20111130153000.js"></script>
|
277
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/json2.ver-20111130153000.js" charset="utf-8"></script>
|
278
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util.ver-20111130153000.js"></script>
|
279
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/util_format.ver-20111130153000.js"></script>
|
280
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/dropdown.ver-20111130153000.js"></script>
|
281
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/master.ver-20111130153000.js"></script>
|
282
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/popup_help.ver-20111130153000.js"></script>
|
283
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.autocomplete.pack.ver-20111130153000.js"></script>
|
284
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.competeutils.ver-20111130153000.js"></script>
|
285
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.cookie.ver-20111130153000.js"></script>
|
286
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/jquery.html5-placeholder-shim.ver-20111130153000.js"></script>
|
287
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/main_nav.ver-20111130153000.js"></script>
|
288
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/NumberFormat-1.5.4.ver-20111130153000.js"></script>
|
289
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/number_format/number_formatter.ver-20111130153000.js"></script>
|
276
290
|
|
277
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/js/superfish.ver-
|
291
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/thirdparty/superfish-1.4.8/js/superfish.ver-20111130153000.js"></script>
|
278
292
|
<script type="text/javascript">
|
279
293
|
// ! TODO: add try_catch block *INSIDE* function() {}
|
280
294
|
$j(document).ready(function() {
|
@@ -303,9 +317,9 @@
|
|
303
317
|
|
304
318
|
<!-- endblock scripts -->
|
305
319
|
|
306
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/amcharts.ver-
|
307
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/free/widgets.ver-
|
308
|
-
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/research.ver-
|
320
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/seaeagle/amcharts.ver-20111130153000.js"></script>
|
321
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/free/widgets.ver-20111130153000.js"></script>
|
322
|
+
<script type="text/javascript" src="http://media.compete.com/site_media/js/c/app/research.ver-20111130153000.js"></script>
|
309
323
|
|
310
324
|
<script type="text/javascript">
|
311
325
|
$j(document).ready(function() {
|
@@ -333,7 +347,6 @@
|
|
333
347
|
zoom_info.load();
|
334
348
|
|
335
349
|
var sites = new $c.free.widgets.SimilarSitesCollection([], {
|
336
|
-
|
337
350
|
site: "google.com"
|
338
351
|
});
|
339
352
|
var graph = new $c.free.widgets.BarGraph({
|
@@ -391,7 +404,7 @@
|
|
391
404
|
|
392
405
|
|
393
406
|
|
394
|
-
<title>google.com
|
407
|
+
<title>google.com 172,196,518 UVs for November 2011 | Compete</title>
|
395
408
|
|
396
409
|
<!-- block head -->
|
397
410
|
|
@@ -429,7 +442,7 @@
|
|
429
442
|
</script>
|
430
443
|
<script type="text/javascript" src="//c.compete.com/bootstrap/s/4b6705ef8ded7e9cb0067318dde11c3e/compete-com/bootstrap.js"></script>
|
431
444
|
<noscript>
|
432
|
-
<img width="1" height="1" src="https://ssl-compete-com-4b6705.
|
445
|
+
<img width="1" height="1" src="https://ssl-compete-com-4b6705.compete.com/audience/test/springdm/"/>
|
433
446
|
</noscript>
|
434
447
|
<!-- End of the Compete Code -->
|
435
448
|
</span>
|
@@ -451,7 +464,7 @@
|
|
451
464
|
<div class="stretcher">
|
452
465
|
<div class="inner share">
|
453
466
|
|
454
|
-
<span class='st_twitter_custom' st_title="google.com
|
467
|
+
<span class='st_twitter_custom' st_title="google.com 172,196,518 UVs for November 2011 from @compete"><img src="http://media.compete.com/site_media/images/free/fsp_twitter.png" width="22" height="22" alt="Twitter"></span>
|
455
468
|
|
456
469
|
<span class='st_facebook_custom' ><img src="http://media.compete.com/site_media/images/free/fsp_facebook.png" width="22" height="22" alt="Facebook"></span>
|
457
470
|
<span class='st_linkedin_custom' ><img src="http://media.compete.com/site_media/images/free/fsp_linkedin.png" width="22" height="22" alt="LinkedIn"></span>
|
@@ -471,7 +484,7 @@
|
|
471
484
|
</form>
|
472
485
|
</div>
|
473
486
|
|
474
|
-
<p class="data-info">
|
487
|
+
<p class="data-info">November 2011 / U.S. Data Only</p>
|
475
488
|
<ul class="nav tools">
|
476
489
|
<li class="save"><a href="javascript:void(0)" id="graph-image" class="at_save">Save Graph Image</a></li>
|
477
490
|
<li class="export"><a id="csv-export" href="javascript:void(0)" target="" class="at_export">Export CSV</a></li>
|
@@ -481,10 +494,10 @@
|
|
481
494
|
<div class="sidebar">
|
482
495
|
<div class="section score">
|
483
496
|
<h3><span class="help"><img src="http://media.compete.com/site_media/images/free/icon-help-grey.png" width="21" height="21" alt="?"></span>Unique Visitors</h3>
|
484
|
-
<h4>
|
497
|
+
<h4>172,196,518</h4>
|
485
498
|
<ul>
|
486
|
-
<li class="m2m"><span class="delta-positive number">
|
487
|
-
<li class="y2y"><span class="delta-positive number">
|
499
|
+
<li class="m2m"><span class="delta-positive number">3,453,706</span> | <span class="delta-positive number">2.05%</span></li>
|
500
|
+
<li class="y2y"><span class="delta-positive number">26,506,279</span> | <span class="delta-positive number">18.19%</span></li>
|
488
501
|
</ul>
|
489
502
|
<h3>Rank <span class="note">(by UVs)</span></h3>
|
490
503
|
<h4>1</h4>
|
@@ -660,27 +673,27 @@
|
|
660
673
|
code: 200
|
661
674
|
message: OK
|
662
675
|
headers:
|
663
|
-
|
664
|
-
-
|
665
|
-
pragma:
|
666
|
-
- no-cache
|
676
|
+
x-frame-options:
|
677
|
+
- SAMEORIGIN
|
667
678
|
expires:
|
668
679
|
- Fri, 01 Jan 1990 00:00:00 GMT
|
669
|
-
cache-control:
|
670
|
-
- no-cache, must-revalidate
|
671
680
|
content-type:
|
672
681
|
- text/html; charset=ISO-8859-1
|
673
|
-
set-cookie:
|
674
|
-
- PREF=ID=0ffeb766e4bd6145:FF=0:TM=1319672894:LM=1319672894:S=ee_wxwpHgc6udXi9; expires=Fri, 25-Oct-2013 23:48:14 GMT; path=/; domain=.google.com
|
675
682
|
server:
|
676
683
|
- gws
|
684
|
+
date:
|
685
|
+
- Mon, 26 Dec 2011 18:24:00 GMT
|
677
686
|
x-xss-protection:
|
678
687
|
- 1; mode=block
|
679
|
-
|
680
|
-
-
|
688
|
+
set-cookie:
|
689
|
+
- PREF=ID=652b6d0854e507ce:FF=0:TM=1324923840:LM=1324923840:S=zUR-WROfQwaen4fK; expires=Wed, 25-Dec-2013 18:24:00 GMT; path=/; domain=.google.com
|
690
|
+
cache-control:
|
691
|
+
- no-cache, must-revalidate
|
692
|
+
pragma:
|
693
|
+
- no-cache
|
681
694
|
transfer-encoding:
|
682
695
|
- chunked
|
683
696
|
body: |
|
684
|
-
Rank_1:
|
697
|
+
Rank_1:1:9
|
685
698
|
|
686
699
|
http_version: "1.1"
|
data/spec/page_rankr_spec.rb
CHANGED
@@ -20,11 +20,11 @@ describe PageRankr do
|
|
20
20
|
it{ should include(:google) }
|
21
21
|
end
|
22
22
|
|
23
|
-
describe "#ranks" do
|
23
|
+
describe "#ranks", :focus => true do
|
24
24
|
describe "success" do
|
25
25
|
subject do
|
26
26
|
VCR.use_cassette(:success_ranks) do
|
27
|
-
PageRankr.ranks("www.google.com")
|
27
|
+
PageRankr.ranks("http://www.google.com")
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -42,7 +42,7 @@ describe PageRankr do
|
|
42
42
|
describe "failure" do
|
43
43
|
subject do
|
44
44
|
VCR.use_cassette(:failure_ranks) do
|
45
|
-
PageRankr.ranks("please-dont-register-a-site-that-breaks-this-test.com")
|
45
|
+
PageRankr.ranks("http://please-dont-register-a-site-that-breaks-this-test.com")
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
@@ -71,7 +71,7 @@ describe PageRankr do
|
|
71
71
|
describe "success" do
|
72
72
|
subject do
|
73
73
|
VCR.use_cassette(:success_backlinks) do
|
74
|
-
PageRankr.backlinks("www.google.com")
|
74
|
+
PageRankr.backlinks("http://www.google.com")
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -87,13 +87,16 @@ describe PageRankr do
|
|
87
87
|
describe "failure" do
|
88
88
|
subject do
|
89
89
|
VCR.use_cassette(:failure_backlinks) do
|
90
|
-
PageRankr.backlinks("please-dont-register-a-site-that-breaks-this-test.com")
|
90
|
+
PageRankr.backlinks("http://please-dont-register-a-site-that-breaks-this-test.com")
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
94
|
PageRankr.backlink_trackers.each do |tracker|
|
95
95
|
it{ should have_key(tracker) }
|
96
|
-
|
96
|
+
|
97
|
+
it "#{tracker} should have a nil value" do
|
98
|
+
subject[tracker].should be_nil
|
99
|
+
end
|
97
100
|
end
|
98
101
|
end
|
99
102
|
end
|
@@ -109,7 +112,7 @@ describe PageRankr do
|
|
109
112
|
describe "success" do
|
110
113
|
subject do
|
111
114
|
VCR.use_cassette(:success_indexes) do
|
112
|
-
PageRankr.indexes("www.google.com")
|
115
|
+
PageRankr.indexes("http://www.google.com")
|
113
116
|
end
|
114
117
|
end
|
115
118
|
|
@@ -125,13 +128,16 @@ describe PageRankr do
|
|
125
128
|
describe "failure" do
|
126
129
|
subject do
|
127
130
|
VCR.use_cassette(:failure_indexes) do
|
128
|
-
PageRankr.indexes("please-dont-register-a-site-that-breaks-this-test.com")
|
131
|
+
PageRankr.indexes("http://please-dont-register-a-site-that-breaks-this-test.com")
|
129
132
|
end
|
130
133
|
end
|
131
134
|
|
132
135
|
PageRankr.index_trackers.each do |tracker|
|
133
136
|
it{ should have_key(tracker) }
|
134
|
-
|
137
|
+
|
138
|
+
it "#{tracker} should have a nil value" do
|
139
|
+
subject[tracker].should be_nil
|
140
|
+
end
|
135
141
|
end
|
136
142
|
end
|
137
143
|
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: PageRankr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 3.1.0
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Allen Madsen
|
@@ -10,8 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-
|
14
|
-
default_executable:
|
18
|
+
date: 2011-12-26 00:00:00 Z
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
17
21
|
name: rake
|
@@ -21,6 +25,9 @@ dependencies:
|
|
21
25
|
requirements:
|
22
26
|
- - ">="
|
23
27
|
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
24
31
|
version: "0"
|
25
32
|
type: :development
|
26
33
|
version_requirements: *id001
|
@@ -32,6 +39,11 @@ dependencies:
|
|
32
39
|
requirements:
|
33
40
|
- - ">="
|
34
41
|
- !ruby/object:Gem::Version
|
42
|
+
hash: 23
|
43
|
+
segments:
|
44
|
+
- 2
|
45
|
+
- 6
|
46
|
+
- 0
|
35
47
|
version: 2.6.0
|
36
48
|
type: :development
|
37
49
|
version_requirements: *id002
|
@@ -43,6 +55,11 @@ dependencies:
|
|
43
55
|
requirements:
|
44
56
|
- - ">="
|
45
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 23
|
59
|
+
segments:
|
60
|
+
- 1
|
61
|
+
- 0
|
62
|
+
- 0
|
46
63
|
version: 1.0.0
|
47
64
|
type: :development
|
48
65
|
version_requirements: *id003
|
@@ -54,6 +71,11 @@ dependencies:
|
|
54
71
|
requirements:
|
55
72
|
- - ">="
|
56
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: 29
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
- 0
|
78
|
+
- 1
|
57
79
|
version: 0.0.1
|
58
80
|
type: :development
|
59
81
|
version_requirements: *id004
|
@@ -65,6 +87,9 @@ dependencies:
|
|
65
87
|
requirements:
|
66
88
|
- - ">="
|
67
89
|
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
68
93
|
version: "0"
|
69
94
|
type: :development
|
70
95
|
version_requirements: *id005
|
@@ -76,6 +101,11 @@ dependencies:
|
|
76
101
|
requirements:
|
77
102
|
- - ">="
|
78
103
|
- !ruby/object:Gem::Version
|
104
|
+
hash: 5
|
105
|
+
segments:
|
106
|
+
- 1
|
107
|
+
- 4
|
108
|
+
- 1
|
79
109
|
version: 1.4.1
|
80
110
|
type: :runtime
|
81
111
|
version_requirements: *id006
|
@@ -87,17 +117,27 @@ dependencies:
|
|
87
117
|
requirements:
|
88
118
|
- - ">="
|
89
119
|
- !ruby/object:Gem::Version
|
120
|
+
hash: 11
|
121
|
+
segments:
|
122
|
+
- 1
|
123
|
+
- 4
|
124
|
+
- 6
|
90
125
|
version: 1.4.6
|
91
126
|
type: :runtime
|
92
127
|
version_requirements: *id007
|
93
128
|
- !ruby/object:Gem::Dependency
|
94
|
-
name:
|
129
|
+
name: public_suffix
|
95
130
|
prerelease: false
|
96
131
|
requirement: &id008 !ruby/object:Gem::Requirement
|
97
132
|
none: false
|
98
133
|
requirements:
|
99
134
|
- - ">="
|
100
135
|
- !ruby/object:Gem::Version
|
136
|
+
hash: 59
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
- 9
|
140
|
+
- 0
|
101
141
|
version: 0.9.0
|
102
142
|
type: :runtime
|
103
143
|
version_requirements: *id008
|
@@ -109,6 +149,11 @@ dependencies:
|
|
109
149
|
requirements:
|
110
150
|
- - ">="
|
111
151
|
- !ruby/object:Gem::Version
|
152
|
+
hash: 21
|
153
|
+
segments:
|
154
|
+
- 0
|
155
|
+
- 2
|
156
|
+
- 1
|
112
157
|
version: 0.2.1
|
113
158
|
type: :runtime
|
114
159
|
version_requirements: *id009
|
@@ -120,6 +165,11 @@ dependencies:
|
|
120
165
|
requirements:
|
121
166
|
- - ">="
|
122
167
|
- !ruby/object:Gem::Version
|
168
|
+
hash: 11
|
169
|
+
segments:
|
170
|
+
- 0
|
171
|
+
- 4
|
172
|
+
- 2
|
123
173
|
version: 0.4.2
|
124
174
|
type: :runtime
|
125
175
|
version_requirements: *id010
|
@@ -153,6 +203,7 @@ files:
|
|
153
203
|
- lib/page_rankr/indexes.rb
|
154
204
|
- lib/page_rankr/indexes/bing.rb
|
155
205
|
- lib/page_rankr/indexes/google.rb
|
206
|
+
- lib/page_rankr/indexes/yahoo.rb
|
156
207
|
- lib/page_rankr/rank.rb
|
157
208
|
- lib/page_rankr/ranks.rb
|
158
209
|
- lib/page_rankr/ranks/alexa_global.rb
|
@@ -164,6 +215,7 @@ files:
|
|
164
215
|
- lib/page_rankr/tracker.rb
|
165
216
|
- lib/page_rankr/trackers.rb
|
166
217
|
- lib/page_rankr/version.rb
|
218
|
+
- out.html
|
167
219
|
- spec/edge_cases_spec.rb
|
168
220
|
- spec/fixtures/vcr_cassettes/alexa_ranks_edge_case_1.yml
|
169
221
|
- spec/fixtures/vcr_cassettes/failure_backlinks.yml
|
@@ -175,7 +227,6 @@ files:
|
|
175
227
|
- spec/page_rankr_spec.rb
|
176
228
|
- spec/ranks/google/checksum_spec.rb
|
177
229
|
- spec/spec_helper.rb
|
178
|
-
has_rdoc: true
|
179
230
|
homepage: http://github.com/blatyo/page_rankr
|
180
231
|
licenses: []
|
181
232
|
|
@@ -189,17 +240,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
240
|
requirements:
|
190
241
|
- - ">="
|
191
242
|
- !ruby/object:Gem::Version
|
243
|
+
hash: 3
|
244
|
+
segments:
|
245
|
+
- 0
|
192
246
|
version: "0"
|
193
247
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
248
|
none: false
|
195
249
|
requirements:
|
196
250
|
- - ">="
|
197
251
|
- !ruby/object:Gem::Version
|
252
|
+
hash: 23
|
253
|
+
segments:
|
254
|
+
- 1
|
255
|
+
- 3
|
256
|
+
- 6
|
198
257
|
version: 1.3.6
|
199
258
|
requirements: []
|
200
259
|
|
201
260
|
rubyforge_project:
|
202
|
-
rubygems_version: 1.6
|
261
|
+
rubygems_version: 1.8.6
|
203
262
|
signing_key:
|
204
263
|
specification_version: 3
|
205
264
|
summary: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and index counts.
|