Skip to content

Instantly share code, notes, and snippets.

@gmagie

gmagie/README.md Secret

Created October 3, 2016 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmagie/eaf1322c1e4dffa822b72edd559b3fca to your computer and use it in GitHub Desktop.
Save gmagie/eaf1322c1e4dffa822b72edd559b3fca to your computer and use it in GitHub Desktop.
Analyze extreme twitter sentiments (positive and negative) and have the tweets emailed to you

Analyze tweets with specific hashtags. Look for extremely positive or negative tweets. Have those tweets emailed.

[{"id":"d744187e.f26b1","type":"sentiment","z":"c36eeb3d.63ea88","name":"","x":431.99993896484375,"y":1125,"wires":[["9a33d7a2.8c7248"]]},{"id":"850665ba.8beff","type":"twitter in","z":"c36eeb3d.63ea88","twitter":"","tags":"#knoxville","user":"false","name":"Search for tweet","topic":"tweets","x":206.49993896484375,"y":1120,"wires":[["d744187e.f26b1"]]},{"id":"6e75945f.8e902c","type":"debug","z":"c36eeb3d.63ea88","name":"","active":false,"console":"false","complete":"false","x":1231.25,"y":1079.25,"wires":[]},{"id":"9a33d7a2.8c7248","type":"switch","z":"c36eeb3d.63ea88","name":"Sentiment","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"5","vt":"str"},{"t":"lt","v":"-5","vt":"str"}],"checkall":"true","outputs":2,"x":646.25,"y":1126.875,"wires":[["2d59cb20.aa442c"],["66268c36.e21b4c"]]},{"id":"2d59cb20.aa442c","type":"template","z":"c36eeb3d.63ea88","name":"Positive Tweet","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Positive Tweet: {{payload}} !","x":963.75,"y":1079.375,"wires":[["6e75945f.8e902c","236536d6.63e40a"]]},{"id":"66268c36.e21b4c","type":"template","z":"c36eeb3d.63ea88","name":"Negative Tweet","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Negative Tweet: {{payload}} !","x":960,"y":1170,"wires":[["6e75945f.8e902c","236536d6.63e40a"]]},{"id":"236536d6.63e40a","type":"e-mail","z":"c36eeb3d.63ea88","server":"smtp.gmail.com","port":"465","name":"","dname":"","x":1213,"y":1170,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment