From ad5501c53df47c952a86ccbf571dbc4cbc2895d1 Mon Sep 17 00:00:00 2001 From: dwivedikunal100 Date: Thu, 1 Nov 2018 19:56:11 +0530 Subject: [PATCH] Delete core.js --- core.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 core.js diff --git a/core.js b/core.js deleted file mode 100644 index d0b6dbc..0000000 --- a/core.js +++ /dev/null @@ -1,40 +0,0 @@ -var twitter = require('twitter'); -const fs = require('fs'); - -var twitter = new twitter({ -consumer_key: 'mOUpwzhjCGYrPpqBL03n8cbtg', -consumer_secret: 'CFEMDfwkiMnLAO7ofi0ConXlDAmwqUmaAKkx8XQRtfQnMWxI4N', -access_token_key: '261608471-ATGdO8ydPJ3l36vMKJgqTSecpoQZsHNIaBbXjJCJ', -access_token_secret: 'Lwo2SrXGLHapLoXhp3LWiWELpnT1JhPcCEvEgsRmlrkKZ' -}); - - -var search = "earthquake" - -//Stream data -twitter.stream('statuses/filter', {track: search}, function(stream) { -stream.on('data', function(tweet) { -console.log(tweet.text); -}); -stream.on('error', function(error) { -}); -}); - - -//twitter.get('search/tweets', {q: 'earthquake'}, function(error, tweets, response) {console.log(tweets);}); - - - - - -/* -//Getting keys from json object -var op=Object.keys(tweets); -console.log(op); -*/ - -/* -//Saving JSON to file - let data = JSON.stringify(tweet); - fs.writeFileSync('student.json', data); -*/