TradingA trading & investing wiki

Norseman ingest workflow

Kindnorseman

Norseman ingest workflow

This folder houses the wiki-book reading of Norseman Market Timing by Chris Hayden.

Folder layout

FolderContents
_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.mdReading entry point.
Norseman Timeline.mdChronological 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.

  1. Open Cursor's browser pane and navigate to the Norseman publication.
  2. Sign in with your Substack-linked account; complete any 2FA.
  3. Tell the agent to begin the scrape. The agent will:
    • browser_lock the 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>.md with frontmatter (see template 90 - Templates/Norseman Post.md).
    • Report counts and flag any failures.
  4. browser_lock unlock when 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:

  1. 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").
  2. You review and edit the proposed cluster names and post-to-cluster assignments.
  3. For each cluster, the agent creates Chapters/NN - <Theme>.md with:
    • 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.
  4. Each raw post's chapter: frontmatter is back-filled to point at its chapter.
  5. New concepts are stubbed:
    • General terms → 40 - Concepts/<Term>.md (use the Concept template).
    • Norseman-specific terms → 10 - Norseman/Concepts/<Term>.md.

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:

  1. Re-run the scrape (with --since YYYY-MM-DD to skip what's already ingested).
  2. Each new post lands in _raw/.
  3. 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.