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.

Example 1
Use titus-scraper to study #BlackLivesMatter on Bluesky, Mastodon, GDELT and GhanaWeb over the last six months.
Example 2
Compare #BlackLivesMatter and #MAGA on Bluesky and Mastodon for 2026, and give me the report as a Word file.
Example 3
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.

  1. Write the protocol

    init writes protocol.md, sources.csv and study.json before 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.

  2. Approve the sources

    Read each source's terms, then set decision=approve, your name and the date on its row. --approve gdelt,mastodon,bluesky writes ready-made approvals for those three. check shows which sources are ready and which keys are missing.

  3. Collect

    Run collect --dry-run first. 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-posts or --limit. Article text comes later through fetch-text, only for sites you approve for it.

  4. Transcribe videos, if you want

    videos lists posts with a video. With your approval, transcribe turns English videos into text on your own computer with faster-whisper and deletes the audio afterwards. It never downloads YouTube videos.

  5. Audit the data

    audit writes audit.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.

  6. Analyse

    analyze cleans 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-only skips the models.

  7. Check the models by hand

    sample draws posts for two people to label on their own, agree reports Cohen's kappa and Krippendorff's alpha, and score reports the model's accuracy and its shares corrected for its errors. A measure with macro-F1 under 0.50 stays out of the story.

  8. Read, then write

    digest writes a reading packet of headlines, posts and transcripts. Claude reads it before it opens the numbers, checks each storyline against the data and writes blog.md like a news report, with every report linked.

  9. Recheck and build the report

    recheck drops linked posts that were deleted since collection. report builds the file with the seven key figures and up to ten sources. --full adds the analysis report.

  10. Share and delete with care

    export writes the public/ folder: the report and aggregate tables with counts under 10 hidden and no handles, names, links or post text. purge --author HANDLE honours 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.

OptionWhat it does
--typehashtag, topic or user (a public account).
--valueThe hashtag, topic or account. Several spellings of one hashtag go together, and case doesn't matter, so #MAGA and #maga are one tag.
--aliasAnother hashtag or phrase for the same thing.
--counterAn opposing hashtag or phrase. Its posts are kept and reported apart.
--excludeA 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:

Terminal
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-maga

A 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 seeLikely cause and fix
Bluesky 401 or 403The handle or app password is wrong.
A Mastodon server is skipped with 401 or 422That server needs a login for hashtag timelines. Try other servers with --mastodon-server.
GDELT returns nothing for old datesIt 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 cleaningRead 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.