Creating a realtime Tweet visualization in 3-D
- Nom page
- Creating a realtime Tweet visualization in 3-D
- URL
- https://blog.x.com/developer/en_us/a/2014/creating-a-realtime-tweet-visualization-in-3-d
- Date de publication
- 2014-10-06
- Date de consultation
- 2024-11-14
- Mots-clés
- Sentiment
- Verbatims affectifs
-
"// Connect to stream and filter by a geofence that is the size of the Earth var stream = twitter.stream('statuses/filter', { locations: '-180,-90,180,90' }); stream.on('tweet', function (tweet) { // calculate sentiment with "sentiment" module tweet.sentiment = sentiment(tweet.text); // save the Tweet so that the very latest Tweet is available and can be published cachedTweet = tweet });"
"When the Tweet object is received through the stream, we perform some AFINN-based sentiment analysis using a node package called sentiment. This analysis returns a score from -5 to 5 that is assigned to a sentiment property of the Tweet object. We also save the Tweet object to the variable cachedTweet, so the latest Tweet is always available for reference." - Thème général (contenu, image, etc.)
-
Analyse des sentiments
Visualisation 3D en temps réel - Recommandations et bonnes pratiques
-
"The volume of Tweets available through Twitter’s streaming APIs is quite impressive. While these public streaming APIs provide a smaller subset of all Tweets by definition, the amount of real-time data they return can still be a bit overwhelming to process and visualize.
Thankfully, WebSockets is a great solution for sending large volumes of Tweets; when paired with WebGL, it allows for creative ways to visualize Twitter data."
"These are the basics to get you started. The Twitter streaming APIs offer a great source of data for visualizations, and existing technologies like WebSockets and WebGL truly allow for endless creative possibilities. If you would like to dig deeper into the code, remember to clone the repo on GitHub and play with the visualization animations as you see fit. For a primer on working with WebGL and Three.js, don’t forget to check out this getting started guide. Finally, if you are interested in working with Twitter data in AngularJS please check out our previous post on Rendering Tweets with AngularJS and Node.js." - Effets attendus de ces recommandations ou objectifs qu’elles permettent d’atteindre
- Encourager la recherche sur les sentiments à l'aide d'outils de visualisation en temps réel
- Type d'utilisation de l'émotion (Prescription/autodéfinition)
- Préscription
- Thèmes
- Créer un lien avec son audience
- Catégorie
- Utiliser les émotions comme données de recherche
- Images
- Null
- Cas/exemples/illustrations
- Null
- Contraintes
- Null
- Interdictions
- Null
- Sanctions
- Null
Fait partie de Creating a realtime Tweet visualization in 3-D