Use Claude Code to pull and chart public research data
An economist used Claude Code to gather Census homeownership data, clean it, chart it, and turn SEC filing text into a DuckDB research database.
- What they did
- In a webinar series, Paul Goldsmith-Pinkham asked Claude Code, a terminal-based assistant, to handle two research jobs. First, it tracked down Census homeownership data, worked through scraping issues, cleaned the spreadsheets, and wrote code to make the charts. Next, it pulled SEC EDGAR 10-K filings, isolated the risk-factor sections, and assembled them into a DuckDB database. He planned the work before each run and kept refining the output as needed.
- How it went
- The tariff-risk database showed tariff mentions becoming more common and more detailed in recent years. The source also said files that were messy at first became usable research data within a few minutes.
- Tips
- Start with a clear plan and expect to review and adjust the results as you go. For readers, it helps to ask for source links and a note on any gaps before accepting the final dataset or chart.
Try it yourself with Claude Code
I’m researching [topic]. Find the best public source for [data needed], download it, clean it, and save it as a DuckDB database in [folder]. Then make [chart type] and write a brief summary of what it shows, including source links and any caveats or missing pieces. If anything would be irreversible, stop and ask me to approve before continuing.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Claude Code to clean up Obsidian journal notes
A developer used Claude Code in Obsidian to add links to journal entries and turn rough book notes into polished reviews.
Have a coding agent check papers before each experiment
A Claude Code agent with paper search found useful ideas that a plain run missed while tuning a small language model.
Search an Obsidian vault for old research files
A developer set up Claude Code to find and sort research material inside an Obsidian vault on macOS.
Turn new arXiv papers into nightly notes
A daily digest and nightly Claude Code summaries helped one person keep a small, organized notes folder for selected papers.
Use Claude Code to coordinate research and drafting
Researchers used Claude Code to manage lab-style work and produce papers or theses in LaTeX or Markdown.
Map links across a nonfiction library
Point an agent at your book folder and have it surface themed links between excerpts from different nonfiction titles.