How to use
From a question to a report
With Claude, ask in plain words and answer its questions. On the command line, run the same steps yourself. Either way, each study lives in its own folder.
Ask Claude
Name what to study, where and over what dates. Claude asks about the ethics review and the source approvals before it collects anything.
Use titus-scraper to study #BlackLivesMatter on Bluesky, Mastodon, GDELT and GhanaWeb over the last six months.Compare #BlackLivesMatter and #MAGA on Bluesky and Mastodon for 2026, and give me the report as a Word file.Study the topic "four-day work week" in the news from Ghana, Nigeria and Kenya. I need about 2,000 items.Ask for a number of posts in plain words, such as "I need 100 posts", and the skill passes it on as --max-posts. Ask for the analysis report when you want every table, and for Word, Markdown, a web page or LaTeX when a PDF won't do.
A study, step by step
These are the steps Claude follows, and the commands you run without it.
Write the protocol
initwritesprotocol.md,sources.csvandstudy.jsonbefore any collection. It records the query dictionary, the window, the sources, the ethics review (approved, exempt, not human-subjects or pending, with its reference), where the data is stored and how long it is kept, 365 days unless you say otherwise.Approve the sources
Read each source's terms, then set
decision=approve, your name and the date on its row.--approve gdelt,mastodon,blueskywrites ready-made approvals for those three.checkshows which sources are ready and which keys are missing.Collect
Run
collect --dry-runfirst. It lists each source, whether it is approved and the hosts it would contact. Then run it for real. Each search stops at 5,000 posts unless you set--max-postsor--limit. Article text comes later throughfetch-text, only for sites you approve for it.Transcribe videos, if you want
videoslists posts with a video. With your approval,transcribeturns English videos into text on your own computer with faster-whisper and deletes the audio afterwards. It never downloads YouTube videos.Audit the data
auditwritesaudit.md: what came from each source, what each cleaning step removed, how posts matched the query, empty weeks, failed requests and how concentrated the data is in a few accounts or outlets. Fix what you can, and carry the rest into the report as limits.Analyse
analyzecleans the text, merges duplicates, keeps English and flags suspect accounts without dropping them. Then it runs the descriptives, sentiment, emotion, stance, topics, keyness, networks, headlines, entities and robustness checks.--lexical-onlyskips the models.Check the models by hand
sampledraws posts for two people to label on their own,agreereports Cohen's kappa and Krippendorff's alpha, andscorereports the model's accuracy and its shares corrected for its errors. A measure with macro-F1 under 0.50 stays out of the story.Read, then write
digestwrites a reading packet of headlines, posts and transcripts. Claude reads it before it opens the numbers, checks each storyline against the data and writesblog.mdlike a news report, with every report linked.Recheck and build the report
recheckdrops linked posts that were deleted since collection.reportbuilds the file with the seven key figures and up to ten sources.--fulladds the analysis report.Share and delete with care
exportwrites thepublic/folder: the report and aggregate tables with counts under 10 hidden and no handles, names, links or post text.purge --author HANDLEhonours a deletion request across every file built from the posts.
The query dictionary
It keeps exact hashtags, phrases and counter-tags apart, so you can report results for each kind of match.
| Option | What it does |
|---|---|
--type | hashtag, topic or user (a public account). |
--value | The hashtag, topic or account. Several spellings of one hashtag go together, and case doesn't matter, so #MAGA and #maga are one tag. |
--alias | Another hashtag or phrase for the same thing. |
--counter | An opposing hashtag or phrase. Its posts are kept and reported apart. |
--exclude | A phrase that marks a false match, such as "bureau of land management" for #BLM. |
A CamelCase hashtag such as #MakeAmericaGreatAgain also matches the phrase "make america great again" in posts without the tag. An all-lower or all-capital tag can't be split, so give one CamelCase spelling for the phrase. You can test a dictionary on your own posts in Try it.
Comparing topics
Run each topic in its own folder with the same sources, window, cleaning options and models, and write each stance target in its own terms. Audit both before you compare, since a warning in one topic and not the other can create a difference by itself. Then run:
python skills/titus-scraper/scripts/titus_scraper.py compare --runs runs/blm runs/maga --labels "Black Lives Matter" "Make America Great Again" --data runs/blm-vs-magaA difference counts as clear only when its 95% interval leaves out zero on the platforms that matter and it holds in both topics' robustness tables.
When something fails
| What you see | Likely cause and fix |
|---|---|
| Bluesky 401 or 403 | The handle or app password is wrong. |
| A Mastodon server is skipped with 401 or 422 | That server needs a login for hashtag timelines. Try other servers with --mastodon-server. |
| GDELT returns nothing for old dates | It covers about the last three months. Use the NYT archive mode or sitemaps for older news. |
| A source shows "not approved" | Its row in sources.csv lacks decision=approve, reviewer or date_checked. Read its terms, then fill in the row. |
| collect stops with "No sources.csv" | Run init first, then approve the sources. |
| No posts left after cleaning | Read audit.md, then loosen --exclude, widen the window or add aliases. |
The full list is in the skill's instructions. The Sources tab lists the keys each source needs.