titus-scraper v2.4.0
Study a hashtag across social posts and the news
A skill for Claude, and a command-line tool for anyone. Give it a hashtag, a topic or a public account. It collects public posts and articles through official routes, checks the data, analyses the text and writes a news-style report with seven key figures and its sources.
The tour
Every feature in four and a half minutes
Read the transcript
Introduction
Meet titus-scraper, a skill for Claude, and a command-line tool for anyone. It studies a hashtag, a topic or a public account across public social posts and news, and turns what it finds into one report.
What you give it
Give it a hashtag, a list of spellings, a phrase or a public account. Spellings such as #MAGA and #MakeAmericaGreatAgain merge into one topic, whatever their case. Or compare two to four topics side by side.
The report
The result is one PDF: a news-style blog post on what people said and what the news reported. It has seven key figures, every important finding and the ten most relevant sources. Add --full to include the full analysis report.
Sources
It reads Bluesky, Mastodon, Threads and Instagram, with YouTube and Reddit when you have their approval. For news, it uses GDELT and The New York Times API, plus about 170 English-language outlets in the countries you name, through their public sitemaps and feeds. It also reads Medium and WordPress tag feeds, and any blog's RSS feed.
Approved sources only
It reads only the sources you approve in the study's source registry, after reading their terms. It never logs in for anyone, and never gets around a paywall, a rate limit or a block. Article text comes only from sites you approve. It follows robots.txt and waits at least 10 seconds between requests to a site. A dry run shows what would run and which sites it would contact, without sending anything.
Steps
A study runs in clear steps. Set up the protocol, collect, audit the data, analyze it, have two people check the labels, then write the report.
Analysis
Before any model runs, an audit checks the data for gaps, failed requests and duplicates. Then it measures sentiment, emotion and stance with 95% intervals, and finds topics, distinctive words and the main headlines. Seven key figures show posts over time, an oval word cloud, the most used words, the word network, the hashtag network, the tone by platform and sentiment over time.
Word network
In the word network, arrows show which words follow which, and line width shows how often.
Compare topics
To compare topics, it sets volume, tone and stance side by side, with an interval for each difference, and shows how much the topics overlap.
Validation
Two people label a sample by hand. The tool reports how well they agree, scores each model against them and corrects the shares for the model's errors. Robustness checks recompute the headline numbers on other reasonable versions of the data.
Report formats
The report comes as a PDF by default, or as Word, Markdown, a web page or LaTeX.
Responsible research
It's built for responsible research. It leads with aggregates and doesn't quote ordinary users. Purge honors deletion requests, recheck drops deleted posts before you publish, and export writes the only folder meant to be shared.
Easiest install
The simplest way to install is to copy the repository's link into Claude, Claude Code, ChatGPT or Codex and ask it to help you install the skill. It will handle the installation for you, or walk you through any step it can't do itself.
Install in the app
To install it yourself, download titus-scraper.zip from the Releases page. In Claude, open Settings, then Capabilities, and turn on Create and edit files. Open Plugins, then Skills, choose Upload a skill, select the zip and turn the skill on. In ChatGPT, go to Skills, select Create, then Upload from your computer, and choose the same zip without unzipping it. In these apps, the code sandbox can limit which websites the tool reaches. For a full study, use Claude Code, Codex or the command line.
Install from the command line
In Claude Code, add the repository as a plugin marketplace and install the plugin. In Codex, copy the skill folder into your agents skills folder. On the command line, install the packages with pip or conda, then run the self-test, which writes a sample report.
Get it
titus-scraper is free under the MIT license. Get it on GitHub.
How a study runs
Each study gets its own folder, with a written protocol, a source registry and a log of every request.
Plan and approve
init writes the protocol and sources.csv, and records the ethics review. You read each source's terms and approve it. A source without an approved row never runs.
Collect
Official APIs, public feeds and sitemaps, at a polite pace. A dry run lists every host it would contact first. A source with a missing key is skipped and reported.
Audit and analyse
The audit shows what each cleaning step removed, the gaps, the failed requests and how much a few accounts or outlets dominate. Then come sentiment, stance, topics, networks and robustness checks.
Read, write and report
Claude reads a packet of real posts and headlines before it opens the numbers. It writes the story like a news desk would and builds the report as a PDF, Word, Markdown, web page or LaTeX file.
Try it on this site
Two tools run in your browser. Nothing you paste or upload leaves your computer.
Analyse your own posts
Paste posts or open a CSV file. See how the query dictionary matches them, the tone with 95% intervals, the most used words and hashtags, a word cloud, the word network and posts over time.
Open Try itPlan a study
Fill in the topic, the sources, the countries and the dates. Get every command for the study, the approvals and keys it needs, and a request you can paste into Claude.
Plan a studyWhat the analysis covers
Model labels are estimates, so the tool also sets up a two-coder check and corrects the shares for the model's errors.
Descriptives
Unique accounts and outlets, original, reply and repost shares, engagement and linked domains.
Sentiment
A RoBERTa model trained on tweets, or VADER when that model isn't installed. Shares come with 95% Wilson intervals.
Emotion
A DistilRoBERTa emotion model with seven emotions.
Stance
Favor, against or none toward a target you name, from a zero-shot DeBERTa model.
Topics
BERTopic for 200 posts or more, and an NMF baseline that always runs, refitted with three seeds to measure stability.
Keyness
The words that set one group apart, such as favor and against, or one platform and the rest.
Networks
A directed word-flow network and a hashtag network with communities, both saved for Gephi.
Main headlines
Headlines grouped into stories across outlets and ranked by how many outlets ran them.
Robustness
Headline shares recomputed nine ways, such as originals only, without suspect accounts or without the top five outlets.
The report
One file opens with a news-style post: the headline finding, the main stories, the storylines, what the news reported, where people stand, a synthesis, the limits and the ten most relevant sources.
Seven figures in every report
- Volume. Posts per day, week or month, with the peaks and the news behind them.
- Word cloud. An oval cloud of the most used words.
- Top terms. The most used words, counted as the number of posts and articles that use each one.
- Word network. Arrows from each word to the words that often follow it, with line width for how often.
- Hashtag map. Which hashtags appear together, grouped into communities.
- Tone by platform. The share of negative, neutral and positive items on each platform, with 95% intervals.
- Tone over time. Mean sentiment per day, week or month, in the same bins as the volume chart.
Each figure has a caption and a plain explanation built from the data. report --full adds the full analysis report: the audit, every table, the validation, the methods and every source with its link.
Compare two to four topics
Run each topic as its own study with the same sources, window and settings. compare then sets them side by side.
Size and timing
Volume per platform, the peak weeks and how closely the two conversations move together.
Tone and stance
Shares side by side with the difference and its 95% interval, overall and on every platform both topics share.
Where they meet
Items found by both searches, accounts active on both (counted, never named), shared hashtags and outlets that covered both.
Built to be used responsibly
It reads public material only, through the routes each source offers for machines.
Your approval first
Every source needs an approved row in sources.csv after someone reads its terms. Reddit, YouTube and the Guardian also need a named approval or licence. Collection waits for a recorded ethics review.
Limits it keeps
It never logs in for anyone, gets around a paywall, a rate limit or a block, or ignores robots.txt. A fixed list keeps out sites whose terms forbid it, such as Reuters, AP and the BBC.
Ordinary people stay unnamed
Reports name and quote public figures, organisations and outlets with a link. They paraphrase ordinary users and leave out their names, because a quote can be searched back to its author.
Data that gets deleted
purge honours deletion requests, recheck drops posts deleted since collection, and items expire after the retention period. Only the aggregate public/ folder is meant to be shared.
What runs in your browser, and what needs your computer
Try it runs the parts of the analysis that need no download of models: the query dictionary, exact duplicates, VADER sentiment with Wilson intervals, word and hashtag counts, the word cloud, the word-flow network and the time charts. It uses the same rules as the tool.
Collection stays with you. Each source has its own terms, keys and approvals that belong to the person running the study, and the tool's ethics and approval checks only work when that person records them. The transformer models for sentiment, emotion, stance and topics are large downloads that run on your own computer. The report builder needs Python packages too.
Source code on GitHub (opens in a new tab). MIT licensed. v2.4.0 release notes (opens in a new tab).