PageRankr 4.2.1 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ea14c2b309cc3f7ff576cc954d5b382ff24d5a1
4
- data.tar.gz: 91e7e55f23143b10fb8d5676634cce036e65a0b6
3
+ metadata.gz: a751693de7ef745eadf6c65ceb139529d14bec76
4
+ data.tar.gz: 83ee90cc7f4fde99e3a9e0ec70052d566511ae1a
5
5
  SHA512:
6
- metadata.gz: de2cf9fea56eec4693b0f19b7a28feef75d9c1538e8fc24bc2d01e90e3294373e914590e3b789b46baec8334996b9f53d768219a325a100c0bce8681347e81bc
7
- data.tar.gz: 794d95ee175692298bfd899f611734d998ccd33d34fd0866ab0d60e40ca03fce8ba38832e696cc7b44ee8f452bedffb307e62760729c66ddde6dbda4d471ed7c
6
+ metadata.gz: 7556bbb5e766b538663dfc9f64bec471336f0c2c33f2387d4598862c09869e35ab43a58341513f3ab6b1a0374cfdbed4cad8eedc195fc0762caec54ac552d760
7
+ data.tar.gz: badec38a9ad5299d8a15a3c99bb8082f3c50c83549d2d5009d9e968c4ed4e3e882bfb36365e2933b32a92dff00b505a948943bad025bd8ab82576be9c7076ad2
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 4.3.0
4
+ * Add Page Authority and Domain Authority ranks
5
+
3
6
  ## Version 4.2.1
4
7
  * Fix Yahoo trackers xpath
5
8
  * Require newer version of public_suffix_service
data/README.md CHANGED
@@ -107,7 +107,7 @@ If you don't specify a rank provider, then all of them are used.
107
107
 
108
108
  # this also gives the same result
109
109
  PageRankr.ranks('www.google.com')
110
- #=> {:alexa_us=>1, :alexa_global=>1, :alexa_country=>1, :google=>10, :moz_rank => 8, :page_authority => 97}
110
+ #=> {:alexa_us=>1, :alexa_global=>1, :alexa_country=>1, :google=>9, :moz_rank=>8, :domain_authority=>100, :page_authority=>96}
111
111
  ```
112
112
 
113
113
  You can also use the alias `rank` instead of `ranks`.
@@ -115,7 +115,7 @@ You can also use the alias `rank` instead of `ranks`.
115
115
  Valid rank trackers are: `:alexa_country, :alexa_global, :alexa_us, :google, :moz_rank, :page_authority`. To get this you can do:
116
116
 
117
117
  ``` ruby
118
- PageRankr.rank_trackers #=> [:alexa_country, :alexa_global, :alexa_us, :google, :moz_rank, :page_authority]
118
+ PageRankr.rank_trackers #=> [:alexa_us, :alexa_global, :alexa_country, :google, :moz_rank, :domain_authority, :page_authority]
119
119
  ```
120
120
 
121
121
  Alexa ranks are descending where 1 is the most popular. Google page ranks are in the range 0-10 where 10 is the most popular. If a site is unindexed then the rank will be nil.
@@ -148,14 +148,14 @@ Also, once a tracker has run three values will be accessible from it:
148
148
 
149
149
  One of the annoying things about each of these services is that they really don't like you scraping data from them. In order to deal with this issue, they throttle traffic from a single machine. The simplest way to get around this is to use proxy machines to make the requests.
150
150
 
151
- In PageRankr >= 3.2.0, this is much simpler. The first thing you'll need is a proxy service. Two are provided [here](https://github.com/blatyo/page_rankr/tree/master/lib/page_rankr/proxy_services). A proxy service must define a `proxy` method that takes two arguments. It should return a string like `user:password@192.168.1.1:50501`.
151
+ In PageRankr >= 3.2.0, this is much simpler. The first thing you'll need is a proxy service. Two are provided [here](https://github.com/blatyo/page_rankr/tree/master/lib/page_rankr/proxy_services). A proxy service must define a `proxy` method that takes two arguments. It should return a string like `http://user:password@192.168.1.1:50501`.
152
152
 
153
153
  Once you have a proxy service, you can tell PageRankr to use it. For example:
154
154
 
155
155
  ``` ruby
156
156
  PageRankr.proxy_service = PageRankr::ProxyServices::Random.new([
157
- 'user:password@192.168.1.1:50501',
158
- 'user:password@192.168.1.2:50501'
157
+ 'http://user:password@192.168.1.1:50501',
158
+ 'http://user:password@192.168.1.2:50501'
159
159
  ])
160
160
  ```
161
161
 
@@ -4,12 +4,13 @@ require File.expand_path("../ranks/alexa_global", __FILE__)
4
4
  require File.expand_path("../ranks/alexa_country", __FILE__)
5
5
  require File.expand_path("../ranks/google", __FILE__)
6
6
  require File.expand_path('../ranks/moz_rank', __FILE__)
7
+ require File.expand_path('../ranks/domain_authority', __FILE__)
7
8
  require File.expand_path('../ranks/page_authority', __FILE__)
8
9
 
9
10
  module PageRankr
10
11
  class Ranks
11
12
  include Trackers
12
-
13
+
13
14
  alias_method :rank_trackers, :site_trackers
14
15
  end
15
- end
16
+ end
@@ -0,0 +1,29 @@
1
+ require File.expand_path('../../rank', __FILE__)
2
+
3
+ module PageRankr
4
+ class Ranks
5
+ class DomainAuthority
6
+ include Rank
7
+
8
+ def url
9
+ 'http://bagics.com/domain-authority.html'
10
+ end
11
+
12
+ def params
13
+ {:domain => tracked_url}
14
+ end
15
+
16
+ def xpath
17
+ '//*[@id="resId"]'
18
+ end
19
+
20
+ def supported_components
21
+ [:subdomain, :path, :query]
22
+ end
23
+
24
+ def name
25
+ :ranks_domain_authority
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,3 +1,3 @@
1
1
  module PageRankr
2
- VERSION = "4.2.1"
2
+ VERSION = "4.3.0"
3
3
  end
@@ -1,63 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: http://data.alexa.com/data?cli=10&dat=snbamz&url=please-dont-register-a-site-that-breaks-this-test.com
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- user-agent:
11
- - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.56.5 (KHTML,
12
- like Gecko) Version/5.1.6 Safari/534.56.5
13
- response:
14
- status:
15
- code: 200
16
- message: OK
17
- headers:
18
- content-type:
19
- - text/xml
20
- content-length:
21
- - '339'
22
- connection:
23
- - Close
24
- body:
25
- encoding: UTF-8
26
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<ALEXA VER=\"0.9\"
27
- URL=\"please-dont-register-a-site-that-breaks-this-test.com/\" HOME=\"0\"
28
- AID=\"=\" IDN=\"please-dont-register-a-site-that-breaks-this-test.com/\">\r\n<RLS
29
- PREFIX=\"http://\" more=\"0\">\n</RLS>\n<SD TITLE=\"A\" FLAGS=\"\" HOST=\"please-dont-register-a-site-that-breaks-this-test.com\">\n</SD>\n\n</ALEXA>"
30
- http_version: '1.1'
31
- recorded_at: Fri, 18 Jul 2014 02:00:38 GMT
32
- - request:
33
- method: get
34
- uri: http://data.alexa.com/data?cli=10&dat=snbamz&url=please-dont-register-a-site-that-breaks-this-test.com
35
- body:
36
- encoding: US-ASCII
37
- string: ''
38
- headers:
39
- user-agent:
40
- - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.56.5 (KHTML,
41
- like Gecko) Version/5.1.6 Safari/534.56.5
42
- response:
43
- status:
44
- code: 200
45
- message: OK
46
- headers:
47
- content-type:
48
- - text/xml
49
- content-length:
50
- - '339'
51
- connection:
52
- - Close
53
- body:
54
- encoding: UTF-8
55
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<ALEXA VER=\"0.9\"
56
- URL=\"please-dont-register-a-site-that-breaks-this-test.com/\" HOME=\"0\"
57
- AID=\"=\" IDN=\"please-dont-register-a-site-that-breaks-this-test.com/\">\r\n<RLS
58
- PREFIX=\"http://\" more=\"0\">\n</RLS>\n<SD TITLE=\"A\" FLAGS=\"\" HOST=\"please-dont-register-a-site-that-breaks-this-test.com\">\n</SD>\n\n</ALEXA>"
59
- http_version: '1.1'
60
- recorded_at: Fri, 18 Jul 2014 02:00:38 GMT
61
3
  - request:
62
4
  method: get
63
5
  uri: http://toolbarqueries.google.com/tbr?client=navclient-auto&ch=63624986523&features=Rank&q=info%3Aplease-dont-register-a-site-that-breaks-this-test.com
@@ -74,7 +16,7 @@ http_interactions:
74
16
  message: OK
75
17
  headers:
76
18
  date:
77
- - Fri, 18 Jul 2014 02:00:38 GMT
19
+ - Wed, 29 Oct 2014 21:59:32 GMT
78
20
  pragma:
79
21
  - no-cache
80
22
  expires:
@@ -84,10 +26,10 @@ http_interactions:
84
26
  content-type:
85
27
  - text/html; charset=ISO-8859-1
86
28
  set-cookie:
87
- - PREF=ID=4fff13a95be22a07:FF=0:TM=1405648838:LM=1405648838:S=a2JLhV3JUxpwwpFs;
88
- expires=Sun, 17-Jul-2016 02:00:38 GMT; path=/; domain=.google.com
89
- - NID=67=PXVTGz9jDx1x5rUrMSeUXlDRudjNGzzrVtrH5T1pGmOrpvZS8AIP2pO1G3_EHNkX8LAEnpq_UIvV6PJFZMZ6IfMP8YKGHWAMj1GUcbY_h2B9mqABROAZJDhPQzvedlN9;
90
- expires=Sat, 17-Jan-2015 02:00:38 GMT; path=/; domain=.google.com; HttpOnly
29
+ - PREF=ID=ec9644e9c1744326:FF=0:TM=1414619972:LM=1414619973:S=Ozpui5pIQJ06X3pc;
30
+ expires=Fri, 28-Oct-2016 21:59:33 GMT; path=/; domain=.google.com
31
+ - NID=67=D6JWf7NCqCBmx0isLPhPcI7XcJL7Wkee1HQjrugO5M66UKaz6HTz5o5dncxSsQ_VpHpi1_HxYyWhLF7ufFBh4KvRDFB-fU8w7iECu8DpCXN9gHm5Yr5fE7lnoNiddFiX;
32
+ expires=Thu, 30-Apr-2015 21:59:33 GMT; path=/; domain=.google.com; HttpOnly
91
33
  p3p:
92
34
  - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657
93
35
  for more info."
@@ -100,17 +42,17 @@ http_interactions:
100
42
  x-frame-options:
101
43
  - SAMEORIGIN
102
44
  alternate-protocol:
103
- - 80:quic
45
+ - 80:quic,p=0.002
104
46
  connection:
105
47
  - close
106
48
  body:
107
49
  encoding: UTF-8
108
50
  string: ''
109
51
  http_version: '1.1'
110
- recorded_at: Fri, 18 Jul 2014 02:00:38 GMT
52
+ recorded_at: Wed, 29 Oct 2014 21:59:33 GMT
111
53
  - request:
112
54
  method: get
113
- uri: http://data.alexa.com/data?cli=10&dat=snbamz&url=please-dont-register-a-site-that-breaks-this-test.com
55
+ uri: http://bagics.com/domain-authority.html?domain=please-dont-register-a-site-that-breaks-this-test.com
114
56
  body:
115
57
  encoding: US-ASCII
116
58
  string: ''
@@ -123,20 +65,86 @@ http_interactions:
123
65
  code: 200
124
66
  message: OK
125
67
  headers:
68
+ date:
69
+ - Wed, 29 Oct 2014 21:59:33 GMT
126
70
  content-type:
127
- - text/xml
128
- content-length:
129
- - '339'
71
+ - text/html; charset=UTF-8
72
+ transfer-encoding:
73
+ - chunked
130
74
  connection:
131
- - Close
75
+ - close
76
+ set-cookie:
77
+ - __cfduid=d89ec46b0ddb7b50f792863988e1934421414619972904; expires=Mon, 23-Dec-2019
78
+ 23:50:00 GMT; path=/; domain=.bagics.com; HttpOnly
79
+ x-powered-by:
80
+ - PHP/5.3.3
81
+ cache-control:
82
+ - !binary |-
83
+ 4oCccHVibGlj4oCd
84
+ expires:
85
+ - Fri, 31 Oct 2014 21:59:33 GMT
86
+ vary:
87
+ - Accept-Encoding,User-Agent
88
+ server:
89
+ - cloudflare-nginx
90
+ cf-ray:
91
+ - 1812a40ea71308a5-FRA
132
92
  body:
133
93
  encoding: UTF-8
134
- string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<ALEXA VER=\"0.9\"
135
- URL=\"please-dont-register-a-site-that-breaks-this-test.com/\" HOME=\"0\"
136
- AID=\"=\" IDN=\"please-dont-register-a-site-that-breaks-this-test.com/\">\r\n<RLS
137
- PREFIX=\"http://\" more=\"0\">\n</RLS>\n<SD TITLE=\"A\" FLAGS=\"\" HOST=\"please-dont-register-a-site-that-breaks-this-test.com\">\n</SD>\n\n</ALEXA>"
94
+ string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
95
+ xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head>\n<title>Check
96
+ Domain Authority of your Domain for FREE | Bagics.com - All In One SEO Companion</title>\n<meta
97
+ name=\"description\" content=\"Domain Authority Checker - WhoIs LookUp Check
98
+ domain availability Check Page Rank Check PageRank DMOZ directory checker
99
+ \ Yahoo directory checker Proxy servers Check domain age Check Alexa Rank
100
+ \ Domain IP lookup Find domain owner Check Domain Authority Check Page Authority
101
+ \ Check MozTrust Check mozRank Expired Domains Backlinks checker Check
102
+ Link Popularity \"/>\n<meta name=\"keywords\" content=\"WhoIs LookUp,Check
103
+ domain availability,Check Page Rank,Check PageRank,DMOZ directory checker,Yahoo
104
+ directory checker,Proxy servers,Check domain age,Check Alexa Rank ,Check Domain
105
+ IP,lookup,Find domain owner ,Check domain Authority,Check Page Authority,Check
106
+ MozTrust,Check mozRank,Expired Domains,Backlinks checker,Check Link Popularity
107
+ \">\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n<script
108
+ type=\"text/javascript\">\n//<![CDATA[\ntry{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:\"cf\",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:\"/cdn-cgi/nexp/dok2v=1613a3a185/\"},atok:\"d679e02f3d57d24c3704c9784605e43d\",petok:\"c1ea7102f7119b121dab70d6e2d4f28d088eb1ae-1414619973-86400\",zone:\"bagics.com\",rocket:\"0\",apps:{}}];CloudFlare.push({\"apps\":{\"ape\":\"8cf64af6a2fdca5ba142c27997b122a4\"}});!function(a,b){a=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0],a.async=!0,a.src=\"//ajax.cloudflare.com/cdn-cgi/nexp/dok2v=919620257c/cloudflare.min.js\",b.parentNode.insertBefore(a,b)}()}}catch(e){};\n//]]>\n</script>\n<link
109
+ href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\"/>\n</head>\n<body
110
+ onmouseover=\"window.status='';return true;\">\n<div id=\"container\">\n<div
111
+ id=\"main\">\n<div id=\"topbanner\"></div>\n<div id=\"menu\"><center>\n<a
112
+ href=\"index.html\" title=\"bagics home page\">Home</a>\n<a href=\"whois.html\">WhoIs
113
+ LookUp</a>\n<a href=\"domainchecker.html\">Check domain availability</a>\n<a
114
+ href=\"pr.html\">Check Page Rank</a>\n<a href=\"alexarankchecker.html\">Check
115
+ Alexa Rank</a>\n<a href=\"domain-authority.html\">Check Domain Authority</a>\n<a
116
+ href=\"page-authority.html\">Check Page Authority</a>\n<a href=\"yahoodirchecker.html\">Yahoo
117
+ Directory check</a>\n<a href=\"alexabacklinkcheck.html\">Alexa Backlinks Check</a>\n<a
118
+ href=\"bingindexcheck.html\">Bing Index Check</a>\n<a href=\"moz-rank.html\">MOZ-Rank
119
+ Check</a>\n<a href=\"dofollow-links.html\">Dofollow Backlinks Check</a>\n<a
120
+ href=\"total-back-links.html\">Total Backlinks Check</a>\n<a href=\"fake-pr-check.html\">Fake
121
+ PR Check</a>\n<a href=\"domain-age.html\">Domain Age Check</a>\n<a href=\"site-value.html\">Estimated
122
+ Site Value</a>\n<a href=\"google-bot-access.html\">Google Bot Access Check</a>\n<a
123
+ href=\"get-technorati-rank.html\">Technorati rank Check</a>\n \n</div>\n<div
124
+ id=\"content\">\n<h1>Check Domain Authority of Domain.</h1>\n<p>Here, You
125
+ can quickly check the Domain Authority of your favorite sites. Just put your
126
+ domain name below and click CHECK button.</p>\n<br>\n<div class=\"pr\">\n<form
127
+ action=\"/domain-authority.html\" method=\"post\">\nURL: <input name=\"domain\"
128
+ type=\"text\" id=\"domain\" value=\"\" maxlength=\"300\" class=\"prf\" size=\"45\">\n<input
129
+ type=\"submit\" name=\"Submit\" value=\"CHECK\">\n</form></div>\n<div class=\"seomozResult\">\n<strong
130
+ class=\"dac\" id=\"resId\">1</strong>\n<h3 class=\"daa\">Domain Authority</h3>\n<b
131
+ id=\"urlId\">please-dont-register-a-site-that-breaks-this-test.com</b>\n</div></div>\n<div
132
+ class=\"div\"></div>\n</div>\n<div id=\"r\"></div>\n<div id=\"credits\">\n<p>Copyright
133
+ by <a href=\"http://bagics.com\">Bagics</a></p>\n<p>&copy;2012, All rights
134
+ reserved.</p></div>\n</div><script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js\"></script>\n<script
135
+ type=\"text/javascript\">\n\n var _gaq = _gaq || [];\n _gaq.push(['_setAccount',
136
+ 'UA-20641732-23']);\n _gaq.push(['_setDomainName', 'bagics.com']);\n _gaq.push(['_setAllowLinker',
137
+ true]);\n _gaq.push(['_trackPageview']);\n\n (function() {\n var ga =
138
+ document.createElement('script'); ga.type = 'text/javascript'; ga.async =
139
+ true;\n ga.src = ('https:' == document.location.protocol ? 'https://' :
140
+ 'http://') + 'stats.g.doubleclick.net/dc.js';\n var s = document.getElementsByTagName('script')[0];
141
+ s.parentNode.insertBefore(ga, s);\n })();\n\n window.onload = function(){\n
142
+ \ var link = \"http://www.flipkart.com/affiliate/displayWidget?affrid=WRID-139558488367240641\"\nvar
143
+ iframe = document.createElement('iframe');\niframe.frameBorder=0;\niframe.width=\"160px\";\niframe.height=\"600px\";\niframe.id=\"randomid\";\niframe.setAttribute(\"src\",
144
+ link);\ndocument.getElementById(\"r\").appendChild(iframe);\n\n}\n\n</script>\n<style
145
+ type=\"text/css\">IFRAME{position:absolute;left:0;top:0px;overflow:hidden;}</style></body></html>"
138
146
  http_version: '1.1'
139
- recorded_at: Fri, 18 Jul 2014 02:00:38 GMT
147
+ recorded_at: Wed, 29 Oct 2014 21:59:33 GMT
140
148
  - request:
141
149
  method: get
142
150
  uri: http://bagics.com/page-authority.html?domain=please-dont-register-a-site-that-breaks-this-test.com
@@ -152,10 +160,8 @@ http_interactions:
152
160
  code: 200
153
161
  message: OK
154
162
  headers:
155
- server:
156
- - cloudflare-nginx
157
163
  date:
158
- - Fri, 18 Jul 2014 02:00:38 GMT
164
+ - Wed, 29 Oct 2014 21:59:33 GMT
159
165
  content-type:
160
166
  - text/html; charset=UTF-8
161
167
  transfer-encoding:
@@ -163,7 +169,7 @@ http_interactions:
163
169
  connection:
164
170
  - close
165
171
  set-cookie:
166
- - __cfduid=d024659f7a0063b6ad193de1cf463d1861405648838648; expires=Mon, 23-Dec-2019
172
+ - __cfduid=df1a463531dfae50ef0bbc74e4d34a6bf1414619972902; expires=Mon, 23-Dec-2019
167
173
  23:50:00 GMT; path=/; domain=.bagics.com; HttpOnly
168
174
  x-powered-by:
169
175
  - PHP/5.3.3
@@ -172,8 +178,10 @@ http_interactions:
172
178
  cache-control:
173
179
  - !binary |-
174
180
  4oCccHVibGlj4oCd
181
+ server:
182
+ - cloudflare-nginx
175
183
  cf-ray:
176
- - 14bb16398aa901ef-EWR
184
+ - 1812a40ea5c008a5-FRA
177
185
  body:
178
186
  encoding: UTF-8
179
187
  string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
@@ -190,7 +198,7 @@ http_interactions:
190
198
  IP,lookup,Find domain owner ,Check domain Authority,Check Page Authority,Check
191
199
  MozTrust,Check mozRank,Expired Domains,Backlinks checker,Check Link Popularity
192
200
  \">\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n<script
193
- type=\"text/javascript\">\n//<![CDATA[\ntry{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:\"cf\",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:\"/cdn-cgi/nexp/dokv=88e434a982/\"},atok:\"31820ecba16e6370d5b43e3174c019f9\",petok:\"818bf1901ec40ecd6f9c86131fb5385603d0c5fa-1405648838-1800\",zone:\"bagics.com\",rocket:\"0\",apps:{}}];CloudFlare.push({\"apps\":{\"ape\":\"61a470ec965d5d587cd5c8d1882757ba\"}});!function(a,b){a=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0],a.async=!0,a.src=\"//ajax.cloudflare.com/cdn-cgi/nexp/dokv=97fb4d042e/cloudflare.min.js\",b.parentNode.insertBefore(a,b)}()}}catch(e){};\n//]]>\n</script>\n<link
201
+ type=\"text/javascript\">\n//<![CDATA[\ntry{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:\"cf\",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:\"/cdn-cgi/nexp/dok2v=1613a3a185/\"},atok:\"d679e02f3d57d24c3704c9784605e43d\",petok:\"d02a6b091fdc7f3e04b72e4e1da3d97dceb3d435-1414619973-1800\",zone:\"bagics.com\",rocket:\"0\",apps:{}}];CloudFlare.push({\"apps\":{\"ape\":\"4a65d2a05db8d4322fd3ddd775384529\"}});!function(a,b){a=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0],a.async=!0,a.src=\"//ajax.cloudflare.com/cdn-cgi/nexp/dok2v=919620257c/cloudflare.min.js\",b.parentNode.insertBefore(a,b)}()}}catch(e){};\n//]]>\n</script>\n<link
194
202
  href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\"/>\n</head>\n<body
195
203
  onmouseover=\"window.status='';return true;\">\n<div id=\"container\">\n<div
196
204
  id=\"main\">\n<div id=\"topbanner\"></div>\n<div id=\"menu\"><center>\n<a
@@ -228,7 +236,94 @@ http_interactions:
228
236
  document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga,
229
237
  s);\n })();\n\n</script></body></html>"
230
238
  http_version: '1.1'
231
- recorded_at: Fri, 18 Jul 2014 02:00:39 GMT
239
+ recorded_at: Wed, 29 Oct 2014 21:59:33 GMT
240
+ - request:
241
+ method: get
242
+ uri: http://data.alexa.com/data?cli=10&dat=snbamz&url=please-dont-register-a-site-that-breaks-this-test.com
243
+ body:
244
+ encoding: US-ASCII
245
+ string: ''
246
+ headers:
247
+ user-agent:
248
+ - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.56.5 (KHTML,
249
+ like Gecko) Version/5.1.6 Safari/534.56.5
250
+ response:
251
+ status:
252
+ code: 200
253
+ message: OK
254
+ headers:
255
+ content-type:
256
+ - text/xml
257
+ content-length:
258
+ - '339'
259
+ connection:
260
+ - Close
261
+ body:
262
+ encoding: UTF-8
263
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<ALEXA VER=\"0.9\"
264
+ URL=\"please-dont-register-a-site-that-breaks-this-test.com/\" HOME=\"0\"
265
+ AID=\"=\" IDN=\"please-dont-register-a-site-that-breaks-this-test.com/\">\r\n<RLS
266
+ PREFIX=\"http://\" more=\"0\">\n</RLS>\n<SD TITLE=\"A\" FLAGS=\"\" HOST=\"please-dont-register-a-site-that-breaks-this-test.com\">\n</SD>\n\n</ALEXA>"
267
+ http_version: '1.1'
268
+ recorded_at: Wed, 29 Oct 2014 21:59:33 GMT
269
+ - request:
270
+ method: get
271
+ uri: http://data.alexa.com/data?cli=10&dat=snbamz&url=please-dont-register-a-site-that-breaks-this-test.com
272
+ body:
273
+ encoding: US-ASCII
274
+ string: ''
275
+ headers:
276
+ user-agent:
277
+ - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.56.5 (KHTML,
278
+ like Gecko) Version/5.1.6 Safari/534.56.5
279
+ response:
280
+ status:
281
+ code: 200
282
+ message: OK
283
+ headers:
284
+ content-type:
285
+ - text/xml
286
+ content-length:
287
+ - '339'
288
+ connection:
289
+ - Close
290
+ body:
291
+ encoding: UTF-8
292
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<ALEXA VER=\"0.9\"
293
+ URL=\"please-dont-register-a-site-that-breaks-this-test.com/\" HOME=\"0\"
294
+ AID=\"=\" IDN=\"please-dont-register-a-site-that-breaks-this-test.com/\">\r\n<RLS
295
+ PREFIX=\"http://\" more=\"0\">\n</RLS>\n<SD TITLE=\"A\" FLAGS=\"\" HOST=\"please-dont-register-a-site-that-breaks-this-test.com\">\n</SD>\n\n</ALEXA>"
296
+ http_version: '1.1'
297
+ recorded_at: Wed, 29 Oct 2014 21:59:33 GMT
298
+ - request:
299
+ method: get
300
+ uri: http://data.alexa.com/data?cli=10&dat=snbamz&url=please-dont-register-a-site-that-breaks-this-test.com
301
+ body:
302
+ encoding: US-ASCII
303
+ string: ''
304
+ headers:
305
+ user-agent:
306
+ - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.56.5 (KHTML,
307
+ like Gecko) Version/5.1.6 Safari/534.56.5
308
+ response:
309
+ status:
310
+ code: 200
311
+ message: OK
312
+ headers:
313
+ content-type:
314
+ - text/xml
315
+ content-length:
316
+ - '339'
317
+ connection:
318
+ - Close
319
+ body:
320
+ encoding: UTF-8
321
+ string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<ALEXA VER=\"0.9\"
322
+ URL=\"please-dont-register-a-site-that-breaks-this-test.com/\" HOME=\"0\"
323
+ AID=\"=\" IDN=\"please-dont-register-a-site-that-breaks-this-test.com/\">\r\n<RLS
324
+ PREFIX=\"http://\" more=\"0\">\n</RLS>\n<SD TITLE=\"A\" FLAGS=\"\" HOST=\"please-dont-register-a-site-that-breaks-this-test.com\">\n</SD>\n\n</ALEXA>"
325
+ http_version: '1.1'
326
+ recorded_at: Wed, 29 Oct 2014 21:59:33 GMT
232
327
  - request:
233
328
  method: get
234
329
  uri: http://bagics.com/moz-rank.html?domain=please-dont-register-a-site-that-breaks-this-test.com
@@ -244,10 +339,8 @@ http_interactions:
244
339
  code: 200
245
340
  message: OK
246
341
  headers:
247
- server:
248
- - cloudflare-nginx
249
342
  date:
250
- - Fri, 18 Jul 2014 02:00:47 GMT
343
+ - Wed, 29 Oct 2014 21:59:42 GMT
251
344
  content-type:
252
345
  - text/html; charset=UTF-8
253
346
  transfer-encoding:
@@ -255,7 +348,7 @@ http_interactions:
255
348
  connection:
256
349
  - close
257
350
  set-cookie:
258
- - __cfduid=d88d8197a76bd5ef36a3558dd10fe39871405648838631; expires=Mon, 23-Dec-2019
351
+ - __cfduid=dbb379f766ae0b552782d42c45c93c9b21414619972900; expires=Mon, 23-Dec-2019
259
352
  23:50:00 GMT; path=/; domain=.bagics.com; HttpOnly
260
353
  x-powered-by:
261
354
  - PHP/5.3.3
@@ -263,11 +356,13 @@ http_interactions:
263
356
  - !binary |-
264
357
  4oCccHVibGlj4oCd
265
358
  expires:
266
- - Sun, 20 Jul 2014 02:00:38 GMT
359
+ - Fri, 31 Oct 2014 21:59:33 GMT
267
360
  vary:
268
361
  - Accept-Encoding,User-Agent
362
+ server:
363
+ - cloudflare-nginx
269
364
  cf-ray:
270
- - 14bb16397b3701ef-EWR
365
+ - 1812a40ea71108a5-FRA
271
366
  body:
272
367
  encoding: UTF-8
273
368
  string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
@@ -284,7 +379,7 @@ http_interactions:
284
379
  IP,lookup,Find domain owner ,Check domain Authority,Check Page Authority,Check
285
380
  MozTrust,Check mozRank,Expired Domains,Backlinks checker,Check Link Popularity
286
381
  \">\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n<script
287
- type=\"text/javascript\">\n//<![CDATA[\ntry{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:\"cf\",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:\"/cdn-cgi/nexp/dokv=88e434a982/\"},atok:\"31820ecba16e6370d5b43e3174c019f9\",petok:\"0cc18f060ee875ebc695caebd167c81fbcb0ef8a-1405648847-86400\",zone:\"bagics.com\",rocket:\"0\",apps:{}}];CloudFlare.push({\"apps\":{\"ape\":\"317cc198b4f34cc0667f790f0ad63326\"}});!function(a,b){a=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0],a.async=!0,a.src=\"//ajax.cloudflare.com/cdn-cgi/nexp/dokv=97fb4d042e/cloudflare.min.js\",b.parentNode.insertBefore(a,b)}()}}catch(e){};\n//]]>\n</script>\n<link
382
+ type=\"text/javascript\">\n//<![CDATA[\ntry{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:\"cf\",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:\"/cdn-cgi/nexp/dok2v=1613a3a185/\"},atok:\"d679e02f3d57d24c3704c9784605e43d\",petok:\"8c97f20ea34153e52d7d7e97427638ff615c21cb-1414619982-86400\",zone:\"bagics.com\",rocket:\"0\",apps:{}}];CloudFlare.push({\"apps\":{\"ape\":\"9a7071e583ad9819639e87a070b2b16f\"}});!function(a,b){a=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0],a.async=!0,a.src=\"//ajax.cloudflare.com/cdn-cgi/nexp/dok2v=919620257c/cloudflare.min.js\",b.parentNode.insertBefore(a,b)}()}}catch(e){};\n//]]>\n</script>\n<link
288
383
  href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\"/>\n</head>\n<div
289
384
  id=\"container\">\n<div id=\"main\">\n<div id=\"topbanner\"></div>\n<div id=\"menu\"><center>\n<a
290
385
  href=\"index.html\" title=\"bagics home page\">Home</a>\n<a href=\"whois.html\">WhoIs
@@ -323,5 +418,5 @@ http_interactions:
323
418
  type=\"text/css\">IFRAME{position:absolute;left:0;top:0px;overflow:hidden;}</style></body></html>
324
419
  name="
325
420
  http_version: '1.1'
326
- recorded_at: Fri, 18 Jul 2014 02:00:48 GMT
327
- recorded_with: VCR 2.7.0
421
+ recorded_at: Wed, 29 Oct 2014 21:59:42 GMT
422
+ recorded_with: VCR 2.9.3
@@ -206,7 +206,7 @@ http_interactions:
206
206
  connection:
207
207
  - close
208
208
  body:
209
- encoding: UTF-8
209
+ encoding: ISO-8859-1
210
210
  string: |
211
211
  Rank_1:1:9
212
212
  http_version: '1.1'
@@ -561,4 +561,92 @@ http_interactions:
561
561
  s.parentNode.insertBefore(ga, s);\n })();\n\n</script></body></html>"
562
562
  http_version: '1.1'
563
563
  recorded_at: Fri, 18 Jul 2014 02:00:38 GMT
564
- recorded_with: VCR 2.7.0
564
+ - request:
565
+ method: get
566
+ uri: http://bagics.com/domain-authority.html?domain=www.google.com
567
+ body:
568
+ encoding: US-ASCII
569
+ string: ''
570
+ headers:
571
+ user-agent:
572
+ - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.56.5 (KHTML,
573
+ like Gecko) Version/5.1.6 Safari/534.56.5
574
+ response:
575
+ status:
576
+ code: 200
577
+ message: OK
578
+ headers:
579
+ date:
580
+ - Wed, 29 Oct 2014 21:57:34 GMT
581
+ content-type:
582
+ - text/html; charset=UTF-8
583
+ transfer-encoding:
584
+ - chunked
585
+ connection:
586
+ - close
587
+ set-cookie:
588
+ - __cfduid=deb16260d82b401bef8f5b7161ec68ea81414619853987; expires=Mon, 23-Dec-2019
589
+ 23:50:00 GMT; path=/; domain=.bagics.com; HttpOnly
590
+ x-powered-by:
591
+ - PHP/5.3.3
592
+ vary:
593
+ - Accept-Encoding,User-Agent
594
+ cache-control:
595
+ - !binary |-
596
+ 4oCccHVibGlj4oCd
597
+ server:
598
+ - cloudflare-nginx
599
+ cf-ray:
600
+ - 1812a127697e08a5-FRA
601
+ body:
602
+ encoding: UTF-8
603
+ string: "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html
604
+ xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head>\n<title>Check
605
+ Domain Authority of your Domain for FREE | Bagics.com - All In One SEO Companion</title>\n<meta
606
+ name=\"description\" content=\"Domain Authority Checker - WhoIs LookUp Check
607
+ domain availability Check Page Rank Check PageRank DMOZ directory checker
608
+ \ Yahoo directory checker Proxy servers Check domain age Check Alexa Rank
609
+ \ Domain IP lookup Find domain owner Check Domain Authority Check Page Authority
610
+ \ Check MozTrust Check mozRank Expired Domains Backlinks checker Check
611
+ Link Popularity \"/>\n<meta name=\"keywords\" content=\"WhoIs LookUp,Check
612
+ domain availability,Check Page Rank,Check PageRank,DMOZ directory checker,Yahoo
613
+ directory checker,Proxy servers,Check domain age,Check Alexa Rank ,Check Domain
614
+ IP,lookup,Find domain owner ,Check domain Authority,Check Page Authority,Check
615
+ MozTrust,Check mozRank,Expired Domains,Backlinks checker,Check Link Popularity
616
+ \">\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n<script
617
+ type=\"text/javascript\">\n//<![CDATA[\ntry{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:\"cf\",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:\"/cdn-cgi/nexp/dok2v=1613a3a185/\"},atok:\"d679e02f3d57d24c3704c9784605e43d\",petok:\"ed8a858233905d0f7011b6ed68081f590988e9f8-1414619854-1800\",zone:\"bagics.com\",rocket:\"0\",apps:{}}];CloudFlare.push({\"apps\":{\"ape\":\"f382648865761b4b4f0c9bf9a0512314\"}});!function(a,b){a=document.createElement(\"script\"),b=document.getElementsByTagName(\"script\")[0],a.async=!0,a.src=\"//ajax.cloudflare.com/cdn-cgi/nexp/dok2v=919620257c/cloudflare.min.js\",b.parentNode.insertBefore(a,b)}()}}catch(e){};\n//]]>\n</script>\n<link
618
+ href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\"/>\n</head>\n<body
619
+ onmouseover=\"window.status='';return true;\">\n<div id=\"container\">\n<div
620
+ id=\"main\">\n<div id=\"topbanner\"></div>\n<div id=\"menu\"><center>\n<a
621
+ href=\"index.html\" title=\"bagics home page\">Home</a>\n<a href=\"whois.html\">WhoIs
622
+ LookUp</a>\n<a href=\"domainchecker.html\">Check domain availability</a>\n<a
623
+ href=\"pr.html\">Check Page Rank</a>\n<a href=\"alexarankchecker.html\">Check
624
+ Alexa Rank</a>\n<a href=\"domain-authority.html\">Check Domain Authority</a>\n<a
625
+ href=\"page-authority.html\">Check Page Authority</a>\n<a href=\"yahoodirchecker.html\">Yahoo
626
+ Directory check</a>\n<a href=\"alexabacklinkcheck.html\">Alexa Backlinks Check</a>\n<a
627
+ href=\"bingindexcheck.html\">Bing Index Check</a>\n<a href=\"moz-rank.html\">MOZ-Rank
628
+ Check</a>\n<a href=\"dofollow-links.html\">Dofollow Backlinks Check</a>\n<a
629
+ href=\"total-back-links.html\">Total Backlinks Check</a>\n<a href=\"fake-pr-check.html\">Fake
630
+ PR Check</a>\n<a href=\"domain-age.html\">Domain Age Check</a>\n<a href=\"site-value.html\">Estimated
631
+ Site Value</a>\n<a href=\"google-bot-access.html\">Google Bot Access Check</a>\n<a
632
+ href=\"get-technorati-rank.html\">Technorati rank Check</a>\n \n</div>\n<div
633
+ id=\"content\">\n<h1>Check Domain Authority of Domain.</h1>\n<p>Here, You
634
+ can quickly check the Domain Authority of your favorite sites. Just put your
635
+ domain name below and click CHECK button.</p>\n<br>\n<div class=\"pr\">\n<form
636
+ action=\"/domain-authority.html\" method=\"post\">\nURL: <input name=\"domain\"
637
+ type=\"text\" id=\"domain\" value=\"\" maxlength=\"300\" class=\"prf\" size=\"45\">\n<input
638
+ type=\"submit\" name=\"Submit\" value=\"CHECK\">\n</form></div>\n<div class=\"seomozResult\">\n<strong
639
+ class=\"dac\" id=\"resId\">100</strong>\n<h3 class=\"daa\">Domain Authority</h3>\n<b
640
+ id=\"urlId\">www.google.com</b>\n</div></div>\n<div class=\"div\"></div>\n</div>\n<div
641
+ id=\"r\"></div>\n<div id=\"credits\">\n<p>Copyright by <a href=\"http://bagics.com\">Bagics</a></p>\n<p>&copy;2012,
642
+ All rights reserved.</p></div>\n</div><script type=\"text/javascript\">\n\n
643
+ \ var _gaq = _gaq || [];\n _gaq.push(['_setAccount', 'UA-20641732-23']);\n
644
+ \ _gaq.push(['_setDomainName', 'bagics.com']);\n _gaq.push(['_setAllowLinker',
645
+ true]);\n _gaq.push(['_trackPageview']);\n\n (function() {\n var ga =
646
+ document.createElement('script'); ga.type = 'text/javascript'; ga.async =
647
+ true;\n ga.src = ('https:' == document.location.protocol ? 'https://' :
648
+ 'http://') + 'stats.g.doubleclick.net/dc.js';\n var s = document.getElementsByTagName('script')[0];
649
+ s.parentNode.insertBefore(ga, s);\n })();\n\n</script></body></html>"
650
+ http_version: '1.1'
651
+ recorded_at: Wed, 29 Oct 2014 21:57:34 GMT
652
+ recorded_with: VCR 2.9.3
@@ -64,6 +64,7 @@ describe PageRankr do
64
64
  it{ should have_key(:google) }
65
65
  it{ should have_key(:moz_rank) }
66
66
  it{ should have_key(:page_authority) }
67
+ it{ should have_key(:domain_authority) }
67
68
 
68
69
  it{ subject[:alexa_us].should be_number >= 1 }
69
70
  it{ subject[:alexa_global].should be_number >= 1 }
@@ -71,6 +72,7 @@ describe PageRankr do
71
72
  it{ subject[:google].should be_in(0..10) }
72
73
  it{ subject[:moz_rank].should be_in(5..9) }
73
74
  it{ subject[:page_authority].should be_in(90..99) }
75
+ it{ subject[:domain_authority].should be_in(90..100) }
74
76
  end
75
77
 
76
78
  describe "failure" do
@@ -86,6 +88,7 @@ describe PageRankr do
86
88
  it{ should have_key(:google) }
87
89
  it{ should have_key(:moz_rank) }
88
90
  it{ should have_key(:page_authority) }
91
+ it{ should have_key(:domain_authority) }
89
92
 
90
93
  it{ subject[:alexa_us].should be_nil }
91
94
  it{ subject[:alexa_global].should be_nil }
@@ -93,6 +96,7 @@ describe PageRankr do
93
96
  it{ subject[:google].should be_nil }
94
97
  it{ subject[:moz_rank].should == 0 }
95
98
  it{ subject[:page_authority].should == 1 }
99
+ it{ subject[:domain_authority].should == 1 }
96
100
  end
97
101
  end
98
102
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PageRankr
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -203,6 +203,7 @@ files:
203
203
  - lib/page_rankr/ranks/alexa_country.rb
204
204
  - lib/page_rankr/ranks/alexa_global.rb
205
205
  - lib/page_rankr/ranks/alexa_us.rb
206
+ - lib/page_rankr/ranks/domain_authority.rb
206
207
  - lib/page_rankr/ranks/google.rb
207
208
  - lib/page_rankr/ranks/google/checksum.rb
208
209
  - lib/page_rankr/ranks/moz_rank.rb
@@ -247,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
248
  version: 1.3.6
248
249
  requirements: []
249
250
  rubyforge_project:
250
- rubygems_version: 2.2.2
251
+ rubygems_version: 2.4.2
251
252
  signing_key:
252
253
  specification_version: 4
253
254
  summary: Easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and index
@@ -267,3 +268,4 @@ test_files:
267
268
  - spec/ranks/google/checksum_spec.rb
268
269
  - spec/site_spec.rb
269
270
  - spec/spec_helper.rb
271
+ has_rdoc: