
Media Analysis Reimagined
In today's rapidly evolving media landscape, understanding how different platforms shape public discourse has become crucial for informed citizenship. Traditional legacy media outlets - newspapers, television networks, and established digital publications - operate under editorial standards developed over decades. Meanwhile, social media platforms like X provide real-time, unfiltered reactions from millions of users, creating a dynamic environment where news spreads instantly but with varying degrees of accuracy and emotional intensity. This AI-powered app monitors top global headlines and finds corresponding X posts, comparing how the same stories are covered, discussed, and received across these fundamentally different media environments. By examining sentiment patterns, emotional responses, and narrative framing, we can discover hidden patterns that influence how society processes information, forms opinions, and makes decisions. This comparative approach doesn't seek to determine which platform is "better," but rather to illuminate how each contributes to the complex tapestry of modern news consumption, helping readers develop media literacy skills essential for navigating our interconnected information age. Specifically, news stories are analyzed for overall sentiment (on a 0-1 scale where 0=very negative, 1=very positive) as well as the dominant emotion expressed, from both legacy sources and X posts. The data is then filtered for news items that are covered substantially differently and conveniently displayed in a table below (see the Latest Data section) for users to peruse, along with a commentary on the differences. The data automatically updates each day at 10pm CST (to capture a full day's worth of news stories), and is automatically posted here as well as on our X account, @h45hb4ng_data. Note that while only stories with a substantial difference in coverage are displayed here (in the latest data section), the full data for each article is in the database in case you'd like to refer to it later. See the source for further details.
Latest Data
Comparison of world news coverage between legacy media outlets and social media discourse on X. Data is automatically updated daily at 10pm to capture evolving narratives based on a full day's worth of news headlines. Daily data collection ended 8/16/26, feel free to view the source and/or archive if curious about how it works. There is also an analysis of what the data reveals here.
| Timestamp | Article Title | Legacy Sentiment | X Sentiment | Legacy Emotion | X Emotion | Analysis |
|---|---|---|---|---|---|---|
| August 31, 2026 @ 10:08PM | Can cut-price Shein shine in its long-awaited stock market debut? | 0.2 | 0.5 | Disappointment | Neutral | The BBC article's negative tone (sentiment 0.2, disappointment) focuses on Shein's listing struggles. X posts are limited to neutral headline shares with no added commentary or reactions. This results in milder, less emotional X engagement compared to the article's pessimistic framing. |
| August 31, 2026 @ 8:42PM | Whatever happened to the U.S. famine alert system that Trump shut down, then reopened | 0.5 | 0.34 | Neutral | Sadness | The NPR article maintains a neutral tone (sentiment 0.5) focused on factual reporting about famine risks via USAID/FEWS NET. In contrast, X posts on the topic skew more negative (avg sentiment 0.34) with dominant sadness, often highlighting human suffering, policy failures, and deaths from related issues like USAID cuts. This suggests social media amplifies emotional alarm over the article's balanced presentation. |
| August 31, 2026 @ 10:04AM | Attacks flare between U.S., Iran after month-long pause | 0.15 | 0.48 | Anger | Anger | The NPR article conveys a starkly negative tone focused on escalating violence (sentiment 0.15, anger). X posts sharing the article are mostly neutral link-only shares, yielding a milder average sentiment of 0.48. Reactions mirror the anger theme but with less intensity, as users rarely add commentary beyond factual notes or reposts. |
| August 31, 2026 @ 11:57AM | What it takes to live an America-free lifestyle in Canada. Spoiler: It's not easy. | 0.5 | 0.42 | Neutral | Anger | The article maintains a neutral, factual tone (sentiment 0.5) describing challenges of an America-free lifestyle. X reactions skew more negative with average sentiment 0.42, dominated by anger and frustration over tariffs, often expressing boycott resolve or criticism of US policy. This creates a sharper, more polarized emotional response on X compared to the article's balanced reporting. |
| August 31, 2026 @ 6:30PM | How Vibe Coding Changed the Way I Run My Business (and Why Every Solopreneur Should Try It) | 0.5 | 0.72 | Neutral | Positive | The article maintains a balanced, neutral tone (0.5 sentiment) while introducing "vibe coding" as a practical business shift for solopreneurs. X posts on the topic skew more positive overall, with many users expressing enthusiasm about its speed and accessibility, though a minority highlight maintenance challenges or frustration with the trend. This suggests X reactions amplify the empowering aspects beyond the article's measured presentation. |
| August 31, 2026 @ 11:57AM | What it takes to live an America-free lifestyle in Canada. Spoiler: It's not easy. | 0.57 | 0.42 | Neutral | Anger | The article presents a neutral, factual overview (sentiment 0.57) of Canadians adapting to an America-free lifestyle amid tariffs. X posts show more polarized and emotional reactions, with frequent expressions of frustration over economic feasibility and calls to boycott, resulting in lower average sentiment. Overall, X reactions amplify skepticism and anger compared to the article's balanced tone. |
| August 31, 2026 @ 6:30PM | How Vibe Coding Changed the Way I Run My Business (and Why Every Solopreneur Should Try It) | 0.5 | 0.72 | Neutral | Joy | Article tone is neutral (0.5) and factual about personal business changes. X reactions skew more positive overall, with users sharing excitement, success stories, and encouragement to try vibe coding. Direct shares of the article itself remain neutral while broader topic posts add enthusiastic optimism not present in the source piece. |
| August 31, 2026 @ 2:29PM | Another PlayStation Studio Cofounder Steps Down: ‘Housemarque’s Strategy And Creative Vision Are In Exceptional Hands’ | 0.65 | 0.45 | Optimism | Sadness | The article maintains an optimistic tone (0.65 sentiment) emphasizing continuity and strong hands at Housemarque despite the cofounder's exit. X reactions skew more neutral-to-negative, with posts highlighting sadness over the 31-year departure and linking it to broader PlayStation studio issues. Overall, social media shows greater concern and less reassurance than the piece's positive framing. |
| August 31, 2026 @ 2:29PM | Another PlayStation Studio Cofounder Steps Down: ‘Housemarque’s Strategy And Creative Vision Are In Exceptional Hands’ | 0.6 | 0.42 | Optimism | Pessimism | The article maintains a positive, reassuring tone (sentiment 0.6, optimism) by highlighting strong ongoing leadership at HouseMarque. X posts, mostly neutral announcements with some replies, skew more negative overall, focusing on studio instability, departures, and "cooked" future without founders. This creates a noticeable gap where article optimism contrasts with X's predominant pessimism and uncertainty. |
| August 31, 2026 @ 11:59AM | ChatGPT becomes the first AI chatbot designated under the DSA | 0.6 | 0.52 | Joy | Neutral | Article tone is mildly positive (0.6) with dominant joy about the DSA milestone, but X posts are predominantly neutral factual shares or reposts of headlines with minimal commentary. X reactions show little emotional engagement, focusing instead on information dissemination rather than celebration or analysis. Overall, social media responses appear more detached compared to the article's upbeat framing. |
Archive
To access data for a previous date, please refer to our account on X, which automatically posts the current day's data at 10pm CST daily.
Source Code
This project is completely open source and free. It requires only PHP, MySQL, and API keys for xAI and NewsAPI. It is webserver agnostic, so you can use Apache, nginx, or whatever else will run PHP. The code that automatically posts the data to X also requires an API key from X and the free software packages wkhtmltopdf/wkhtmltoimage and ImageMagick (if you're running Ubuntu, sudo apt install wkhtmltopdf imagemagick is quick and easy).
Here is a quick rundown on the files:
- config.php - set your API keys here
- database.php - database functions to connect to your MySQL server, uses the MySQLi PHP extension
- get_news.php - gets today's global news headlines from legacy source via NewsAPI
- index.php - this file, which acts as the primary frontend
- main.php - responsible for invoking the functions defined in get_news.php, xai_article.php, and xai_x_posts.php. This is the file you want to execute in your crontab
- table.php - handles the latest data table, index.php calls this file as an include
- xai_article.php - passes a legacy news article to the xAI API to perform sentiment and emotion analysis
- xai_x_posts.php - searches X (via xAI API) for posts describing a particular news story. Finds the average sentiment and dominant emotion among these posts
- x_post.php - responsible for automatically posting the data to X. This should also be executed via cron slightly after main.php. Personally, I run them at 10:00 pm and 10:05 pm. Note that this requires an X API key in config.php as well as the TwitterOAuth package (easy install via composer)