Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
backlinks-serp
Advanced tools
This module allows to execute a search on Google and get the most important backlinks from the domains's SERP
This module allows to execute a search on Google and get the most important backlinks from the domains's SERP.
$ npm install backlinks-serp
var serp = require("backlinks-serp");
var options = {
host : "google.com",
num : 100,
jar: true,
qs : {
q : "blackfriday",
pws : "0"
},
apiKey : process.env.MAJESTIC_API_KEY,
datasource : "fresh",
showDomainInfo : true
};
serp.searchDomainBacklinks(options, function(error, links){
if (error) {
console.log("Error during retrieving domains on SERP : " + error);
done();
}
//console.log("END TEST", util.inspect(result, false, null));
console.log("Domain,Domain TF,Domain CF,Domain Topic 1,Domain Topic 2,Domain Topic 3, Country Code,TLD," +
"Ext. Backlinks,Indexed URLS, Crawled URLS," +
"Source URL,URL TF,URL CF,Topic 1,Topic 2,Topic 3,Link Type,Anchor Text,Target URL,Redirect,Image");
links.forEach(function(link) {
let output = "";
if (link.domain) {
output += link.domain.name + "," + link.domain.tf + "," + link.domain.cf + "," + link.domain.topical1 + "," +
link.domain.topical2 + "," + link.domain.topical3 + "," + link.domain.countryCode + "," + link.domain.tld + "," +
link.domain.extBacklinks + "," + link.domain.indexedURLS + "," + link.domain.crawledURLS + ",";
}
else {
output += ",,,,,,,,,,,";
}
output += link.sourceURL + "," + link.tf + "," + link.cf + "," + link.topical1 + "," + link.topical2 + "," + link.topical3 + "," +
link.linkType + "," + link.anchorText + "," + link.targetUrl + "," + link.flagRedirect + "," + link.flagImages;
console.log(output);
});
The 'options' json structure can contain the following paramaters :
For executing the request/scrape on Google :
For Checking the domains :
FAQs
This module allows to execute a search on Google and get the most important backlinks from the domains's SERP
The npm package backlinks-serp receives a total of 0 weekly downloads. As such, backlinks-serp popularity was classified as not popular.
We found that backlinks-serp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.