ithinkdancan / node-semrush Goto Github PK
View Code? Open in Web Editor NEWnode-semrush - An unofficial SEMRush API library for Node.js
node-semrush - An unofficial SEMRush API library for Node.js
I get no results when using semrush phrase_organic with node, while direct query (url in browser) returns results, am i missing something here?
console.log("semrushing with query:", semrushQuery);
semrush.phrase_organic(semrushQuery, {display_limit:20}, function(err, response) {
output:
semrushing with query: marketing+New+York
error while semrushing Error: response.error:ERROR 50 :: NOTHING FOUND
I have also tried with:
semrush.phrase_organic(semrushQuery, {display_limit:20, export_columns:"Dn,Ur", database:"us"}, function(err, response) {
still nothing
Direct query:
http://api.semrush.com/?type=phrase_organic&key=XXX_MY_KEY_XXX&display_limit=10&export_columns=Dn,Ur&phrase=marketing+new+york&database=us
results:
Domain;Url
indeed.com;http://www.indeed.com/q-Marketing-l-New-York,-NY-jobs.html
craigslist.org;https://newyork.craigslist.org/search/mar
linkedin.com;https://www.linkedin.com/jobs/marketing-jobs-new-york
leaddogmarketing.com;http://leaddogmarketing.com/
monster.com;http://jobs.monster.com/v-marketing-l-new-york-city,-ny.aspx
simplyhired.com;http://www.simplyhired.com/k-marketing-l-new-york-ny-jobs.html
looksharp.com;https://www.looksharp.com/s/marketing-entry-level-jobs/new-york-ny
bloomberg.com;http://jobs.bloomberg.com/go/Marketing-Jobs-in-New-York-at-Bloomberg/356815/
twitter.com;https://twitter.com/nymarketingjobs
mediabistro.com;https://www.mediabistro.com/jobs/openings/pr-and-communications/
Hello Urgent Help.
Guys when i was trying to get data from SEMRUSH API using backlinks_refdomains and backlinks_refips its showing me this error.
And when i called same function domain_rank it responded me in json format. can you help me out in this. Attached image is the result when is is give me domain_rank but not other factors like baclinks and etc.
I am using this code.
``module.exports = {
index: function(req,res){
console.log("Hello welocme!");
var SEMRushAPI = require('sails-semrush');
var URL = "www.flipkart.com";
var database = {database:'us'};
var semrush = new SEMRushAPI('XXXXXXXXXXXXXXX');
semrush.backlinks(URL, database, function(err, response){
if (err){
console.log("There is some error to fetching web traffic on API !");
console.log("err: ",err);
console.log("There is some error to fetching web traffic on API !");
}else{
console.log("backlinks");
console.log(" Response: ",response);
console.log("**************** Get the web traffic successfully ***************");
console.log("******zone, country, ip*******");
}
semrush.backlinks_refdomains(URL, database, function(err, response){
if (err){
console.log("There is some error to fetching web traffic on API !");
console.log("err: ",err);
console.log("There is some error to fetching web traffic on API !");
}else{
console.log("domain_score_asc, domain_score_desc, backlinks_asc, backlinks_desc, last_seen_asc, last_seen_desc, first_seen_asc, first_seen_desc");
console.log(" Response: ",response);
console.log("**************** Get the web traffic successfully **************");
console.log("zone, country, ip");
}
});
Thanks in Advance
my app keeps crashing because of errors like this, and crashes are few times a week or sometimes once a day. Other than timeoutes got these as well:
Error: getaddrinfo ENOTFOUND api.semrush.com api.semrush.com:80
at errnoException (dns.js:26:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)
last error is more often.
Is this official node module from semrush?
Every time I call node-semrush I get this error:
user@sky:~/htdocs/***# node test_semrush.js
/_/node_modules/node-semrush/index.js:77
csv().from.string(urldata, {delimiter: ';', columns: true}).to.array(funct
^
TypeError: Cannot call method 'string' of undefined
at IncomingMessage. (/_/node_modules/node-semrush/index.js:77:16)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:943:16
at process._tickCallback (node.js:419:13)
version installed from npm is not the same as this one on github, in package.json it's same version number but more than half of the functions are missing.
Can you please update?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.