Hey @gyachdav and @sacdallago ,
We implemented the live streamed sentiment analysis, users can request (via websockets) twitter streams by location and pokemon name. However, we are not sure what project should actually use this data in the frontend - is this also for the @PokemonGoers/pokemap-1 and @PokemonGoers/pokemap-2 teams, or maybe @PokemonGoers/catch-em-all ? In the same vein, who is consuming the output from our historic tweet sentiment analysis project ?
Example client code for the twitter stream:
var socket = io('http://localhost:8888/sentiment');
socket.on("connect", function(){
socket.emit("settings",
{
mode: "geo", // or "all" for no specific location but getting all tweets
lat: 1, lon:1, radius: 50000000,
pokemonName: "Abra" // or leave out for getting all pokemon-related tweets
}
);
});
socket.on("tweet", function (data){
console.log(data);
});