Norseman ingest workflow
| Kind | norseman |
|---|
Contents
Norseman ingest workflow
This folder houses the wiki-book reading of Norseman Market Timing by Chris Hayden.
Folder layout
| Folder | Contents |
|---|---|
_raw/ | One file per Substack post: YYYY-MM-DD - <slug>.md. Verbatim body + frontmatter (date, title, url, concepts, tickers, themes, chapter). |
_raw/_attachments/<slug>/ | Inline images downloaded during the scrape. |
Chapters/ | Themed chapters that tie related posts together with prose + transclusions. Filename NN - <Theme>.md. |
Concepts/ | Norseman-specific terminology. General concepts live under 40 - Concepts/. |
Norseman MOC.md | Reading entry point. |
Norseman Timeline.md | Chronological view of every post. |
Step 1 — Browser scrape (paid Substack)
The Norseman Substack is paid, so we use Cursor's managed browser tab with your active session.
- Open Cursor's browser pane and navigate to the Norseman publication.
- Sign in with your Substack-linked account; complete any 2FA.
- Tell the agent to begin the scrape. The agent will:
browser_lockthe tab so input isn't hijacked.- Walk
<pub>.substack.com/archive?sort=new, paginating until exhaustion, collecting(date, title, url, slug)for every post. - Visit each post URL and capture the rendered article body via accessibility snapshot +
Runtime.evaluate. HTML is converted to markdown (Turndown-style cleanup); inline images downloaded into_raw/_attachments/<slug>/. - Write
_raw/<YYYY-MM-DD> - <slug>.mdwith frontmatter (see template90 - Templates/Norseman Post.md). - Report counts and flag any failures.
browser_lock unlockwhen finished.
The script .scripts/norseman_scrape.py (created at scrape time) is the source of truth for the algorithm; tweak filters there.
Step 2 — Themed clustering
Once _raw/ is populated:
- The agent reads every raw post's frontmatter + opening paragraph and proposes a clustering of posts into themes (e.g. "Setup mechanics", "Macro regimes", "Trade management").
- You review and edit the proposed cluster names and post-to-cluster assignments.
- For each cluster, the agent creates
Chapters/NN - <Theme>.mdwith:- Brief intro to the theme.
- Ordered transclusions of the relevant raw post sections via
![[<filename>#section]]. - "Concepts" section listing
[Relative Strength](/trading/notes/concepts/relative-strength)-style links. - "Further reading" cross-links to other chapters.
- Each raw post's
chapter:frontmatter is back-filled to point at its chapter. - New concepts are stubbed:
- General terms →
40 - Concepts/<Term>.md(use the Concept template). - Norseman-specific terms →
10 - Norseman/Concepts/<Term>.md.
- General terms →
Step 3 — Time-based browsing
This works automatically once posts have date: frontmatter:
- File explorer: filenames are date-prefixed, so they sort chronologically.
- Calendar plugin (right sidebar): dots appear on every day with a Norseman post.
Norseman Timeline.md: full chronological table + per-month groups.- Daily-note "On this day in Norseman" section: shows posts from the same calendar day in prior years.
Step 4 — Re-syncing later
When new posts publish:
- Re-run the scrape (with
--since YYYY-MM-DDto skip what's already ingested). - Each new post lands in
_raw/. - Either assign to an existing chapter (set
chapter:frontmatter) or queue for the next clustering pass.
Action you'll do
Make sure you're logged into Norseman Market Timing in Cursor's browser, then tell the agent to start. Everything else is the agent's job.