Twemotion: a web app/bot to automatically measure emotions of tweets and compare them to (appropriate) news headlines

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

Our great sponsors
  • PopRuby - Clothing and Accessories for Ruby Developers
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • twurl

    OAuth-enabled curl for the Twitter API

    Full statistical methodology is available at twemotion.com, but generally speaking, it searches for a random sampling of tweets from the 5 locations listed above, using a set amount of trending topics from the corresponding locations. Emotion scores of 0–100 are then calculated using the ParallelDots AI Text Analysis API from https://apis.paralleldots.com/text_docs/index.html#emotion, news articles are retrieved using the NewsAPI from newsapi.org and the Enriched News API from webz.io, and tweets/trending topics are retrieved using the standard Twitter API. The graphs are then generated using PHPlot as all of the above takes place server-side. Tables showing the data in chart form are also available at the website. A bit of JavaScript is used for frontend website display, but everything else is written in PHP. Feel free to ask any questions or give your feedback.

  • PopRuby

    PopRuby: Clothing and Accessories for Ruby Developers. Fashion meets Ruby! Shop our fun Ruby-inspired apparel and accessories designed to celebrate the joy and diversity of the Ruby community.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts