Git Product home page Git Product logo

node-semrush's People

Contributors

adamcanady avatar ithinkdancan avatar sospedra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-semrush's Issues

Error 50: nothing found

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/

TypeError: semrush.backlinks_refdomains is not a function

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
");
}
});

backlinks

Thanks in Advance

Error: connect ETIMEDOUT 46.229.161.160:80

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?

csv object is not a function

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)

update npm

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.