Questions tagged [ntwitter]

ntwitter is an Asynchronous Twitter client for Node.js

7 questions
4
votes
2 answers

How to stop and restart a twitter stream with ntwitter

I'm new to node.js so please excuse the simple question. I'm writing something standard: a rest API that goes to twitter using ntwitter and saves stuff on mysql. What I'm having trouble is disconnecting and connecting back to twitter using…
icaro
  • 43
  • 1
  • 6
3
votes
2 answers

Using nTwitter to reply to a Tweet with node.js

I have created a very simple twitter bot using node.js & nTwitter. It searches for a 'certain word' & replies the user with a random quote. I have managed to do everything right. The code runs & streams perfectly. But there's a huge drawback. When…
1
vote
1 answer

A Node app that runs in development but stops in production

I am having trouble finding what's wrong with my code. This app runs fine if I run "node whatever.js" but once I push it up to production in a place like Nodejitsu, it fails to run (I'm actually not sure if it fails to run, but I think it just runs…
Terry Bu
  • 889
  • 1
  • 14
  • 31
1
vote
1 answer

Get last 3 tweets in node.js using express.js and twitter. Terminal says my app authenticated but returns null

I am trying to get the last 3 tweets from my twitter account. I am running express.js with node.js and have installed ntwitter. The app has been authenticated and I entered in the correct security tokens. When I test to see if the app authenticated…
SCADA
  • 11
  • 1
1
vote
1 answer

ntwitter: stop listening on stream events after X callback

//Totally new to node.js I'm using ntwitter to listen on twitter statuses. How can I stop listening after X callback were called? var twittsCounter = 0; twit.stream('statuses/filter', {track:['cool','awesome','fuck yeah!']}, function(stream) { …
Yossale
  • 14,165
  • 22
  • 82
  • 109
0
votes
1 answer

Can't get finite flow of tweets from ntwitter using socket.io

I have my below code that uses socket.io to get tweets from my back-end. I'm using ntwitter and am opening up a stream. I'm trying to get the tweets into a queue so that I can have them float across the screen at different time intervals, but the…
Rafa
  • 3,219
  • 4
  • 38
  • 70
0
votes
2 answers

How to manage a fixed-yet-not-pulled version of 3rd party lib in node?

I'm using nTwitter to access twitter api using node. However, there is a bug in the search utility, and someone already forked and fixed it, but it wasn't pulled yet. How can I use the fixed version s.t all my team will have the fixed version…
Yossale
  • 14,165
  • 22
  • 82
  • 109