i-promise-page-metrics
Advanced tools
Comparing version 0.0.5 to 0.0.6
17
index.js
@@ -49,5 +49,8 @@ "use strict"; | ||
const opts = { | ||
url: "http://www.checkmoz.com/", | ||
url: "http://www.checkmoz.com/moz-metrics/index_ajax.php", | ||
form: { | ||
"f_urls": url | ||
"enter_url": url, | ||
"checks1": "68719476736", | ||
"checks2": "34359738368", | ||
"checks3": "16384" | ||
} | ||
@@ -60,9 +63,9 @@ }; | ||
const $ = cheerio.load(data); | ||
const metricsRow = $(".rowclass1 td"); | ||
const tds = $("td"); | ||
return { | ||
da: $(metricsRow[1]).text(), | ||
pa: $(metricsRow[2]).text(), | ||
ranks: $(metricsRow[3]).text(), | ||
links: $(metricsRow[4]).text() | ||
da: $(tds[3]).text(), | ||
pa: $(tds[5]).text(), | ||
ranks: $(tds[7]).text(), | ||
links: $(tds[19]).text() | ||
}; | ||
@@ -69,0 +72,0 @@ }); |
{ | ||
"name": "i-promise-page-metrics", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Fetches different page metrics for a given URL", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8718
102