twitter-emojis

Search for tweets, filter on emojis

Usage no npm install needed!

<script type="module">
  import twitterEmojis from 'https://cdn.skypack.dev/twitter-emojis';
</script>

README

twitter-emojis

Get a twitter stream, with tweets that include emojis.

Install

npm install twitter-emojis --save

Usage

// stream is an object stream
var stream = require('twitter-emojis')({
  credentials: {
    consumer_key: ...,
    consumer_secret: ...,
    access_token: ...,
    access_token_secret: ...
  },
  // these are channels, as defined in twitter-stream-channels
  channels: {
    channel_name: [ 'search', 'terms' ],
    channel_name2: [ 'some', 'other', 'search', 'terms' ]
  }
});

stream.on('data', function (obj) {
  console.log(obj);
});

See demo.js for more information