Logo vun Extract Chatgpt Transcript

Extract Chatgpt Transcript

Communautéit
ShawhinT
extract-chatgpt-transcript

Extract the full text of a shared ChatGPT conversation and save it as a clean Markdown transcript. Use whenever Shaw shares a chatgpt.com/share/... link (or asks to "scrape this convo", "save this ChatGPT chat", "grab the transcript", "pull the full conversation", "copy this whole chat to a file"). Also fires when a naive copy/paste or reader-mode grab of a ChatGPT share only returns part of the thread and Shaw says "that's not the full thing." Handles the virtualization gotcha that hides most turns from a single read. Do NOT use for Claude share links, generic web articles (use a normal fetch), or live (non-shared) ChatGPT sessions that require login.

Iwwersiicht

EditeurShawhinT
Repositorynon-coding-skills
Skill-Nummextract-chatgpt-transcript
Stären
39
Forks
6
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum ShawhinT op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Extract Chatgpt Transcript an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/ShawhinT/non-coding-skills/tree/main/extract-chatgpt-transcript
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ShawhinT/non-coding-skills.git /tmp/non-coding-skills
mkdir -p .claude/skills
cp -r /tmp/non-coding-skills/extract-chatgpt-transcript .claude/skills/extract-chatgpt-transcript
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Extract Chatgpt Transcript an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Extract Chatgpt Transcript automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Extract Chatgpt Transcript net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Extract ChatGPT Transcript

Turn a shared ChatGPT conversation into a complete, faithful Markdown transcript.

The core problem: virtualization

ChatGPT share pages (chatgpt.com/share/...) are client-rendered AND virtualized: only the handful of conversation turns near the viewport are mounted in the DOM at any moment (often ~7 of 80+). Everything else is an empty wrapper. This is why the easy methods fail:

  • A plain web_fetch returns only the page shell (no conversation — it's JS-rendered).
  • get_page_text / reader-mode returns only the currently-rendered slice, usually the bottom of the thread.
  • Manual select-all + copy misses off-screen turns for the same reason.

So the reliable method is: scroll the whole thread top-to-bottom and capture each turn as it mounts, keyed by turn ID so nothing is deduped or lost.

Procedure

Use the Claude in Chrome tools (load via ToolSearch if deferred: mcp__claude-in-chrome__navigate, mcp__claude-in-chrome__javascript_tool, mcp__claude-in-chrome__tabs_context_mcp, mcp__claude-in-chrome__computer).

1. Navigate

Open the share URL in a new MCP tab. Note the returned tabId.

2. Probe the structure

Confirm the turn selector and find the scroll container:

js
(() => {
  const turns = document.querySelectorAll('[data-testid^="conversation-turn"]');
  const scrollers = [...document.querySelectorAll('*')]
    .filter(e => e.scrollHeight > e.clientHeight + 400 && e.clientHeight > 200)
    .map(e => ({tag:e.tagName, sh:e.scrollHeight, ch:e.clientHeight}));
  return JSON.stringify({turnCount: turns.length,
    withText: [...turns].filter(t=>(t.innerText||'').trim()).length, scrollers});
})()

Turns are [data-testid^="conversation-turn"] with ids like conversation-turn-1. Roles live on a child [data-message-author-role]. The scroll container is the element with the largest scrollHeight (usually a DIV wrapping <main>).

3. Install a persistent collector

Set up a Map keyed by turn testid so identical short turns ("Mmm.", "Right.") are NOT collapsed, and scroll to the top:

js
(() => {
  window.__map = new Map();
  window.__scroller = [...document.querySelectorAll('*')]
    .filter(e => e.scrollHeight > e.clientHeight + 400 && e.clientHeight > 200)
    .sort((a,b)=>b.scrollHeight-a.scrollHeight)[0];
  window.__collect = () => {
    document.querySelectorAll('[data-testid^="conversation-turn"]').forEach(t => {
      const key = t.getAttribute('data-testid');
      const roleEl = t.querySelector('[data-message-author-role]');
      const role = roleEl ? roleEl.getAttribute('data-message-author-role') : '';
      const text = (t.innerText||'').trim();
      if (text) window.__map.set(key, {role, text});
    });
  };
  window.__scroller.scrollTop = 0;
  window.__collect();
  return JSON.stringify({sh: window.__scroller.scrollHeight, size: window.__map.size});
})()

4. Sweep top-to-bottom

Run this loop, then wait and re-check window.__map.size. The Chrome javascript_tool does NOT await an async IIFE's return (it returns {} immediately), but the loop keeps running in the background — so fire it, wait ~8s, then read the size. Re-run the sweep if not yet at the bottom.

js
(async () => {
  const s = window.__scroller;
  for (let i=0;i<40;i++){
    window.__collect();
    if (s.scrollTop + s.clientHeight >= s.scrollHeight - 5) break;
    s.scrollTop += 550;
    await new Promise(r=>setTimeout(r,350));
  }
  window.__collect();
})()

Check progress: JSON.stringify({size: window.__map.size, top: window.__scroller.scrollTop, sh: window.__scroller.scrollHeight, atBottom: (window.__scroller.scrollTop+window.__scroller.clientHeight >= window.__scroller.scrollHeight-5)})

Keep sweeping until size equals the turnCount from step 2 and atBottom is true.

5. Serialize

Order turns by the numeric suffix of their testid and build the output string:

js
(() => {
  const entries = [...window.__map.entries()].sort((a,b)=>
    parseInt((a[0].match(/(\d+)$/)||[])[1]||0) - parseInt((b[0].match(/(\d+)$/)||[])[1]||0));
  window.__out = entries.map(([k,v]) => {
    const role = v.role==='user' ? 'USER' : v.role==='assistant' ? 'ASSISTANT' : (v.role?v.role.toUpperCase():'MSG');
    return `**${role}:** ${v.text}`;
  }).join('\n\n');
  return JSON.stringify({turns: entries.length, chars: window.__out.length});
})()

6. Pull the text out in slices

javascript_tool caps each response at ~1,000 chars, so read window.__out in ~900-char windows, batched several per browser_batch call:

js
window.__out.slice(0,900)     // then 900..1800, 1800..2700, ...

Concatenate the slices, then write to a .md file in outputs and present it.

Output format

Save as Markdown (<slug>-transcript.md). Header with the title (from document.title) and the source link. Then turn-by-turn with **USER:** / **ASSISTANT:** labels. Preserve voice-transcribed answers verbatim, including disfluencies — do not clean them up unless asked. Group into logical sections (e.g. "Voice Interview", "Extraction") only if the conversation clearly has them.

Gotchas checklist

  • Don't trust a single get_page_text — always compare its turn count to the [data-testid^="conversation-turn"] count. If it's short, virtualization bit you.
  • Keying by testid (not by text) is essential; podcast-style threads repeat short backchannels that a text-based Set would merge.
  • The async sweep returns {} — that's normal. Poll window.__map.size after a wait.
  • If the account requires login or it's a live (non-share) chat, this won't work; ask Shaw to use the share link.

Heefeg gestallte Froen

Wat mécht de KI-Skill Extract Chatgpt Transcript?

Extract the full text of a shared ChatGPT conversation and save it as a clean Markdown transcript. Use whenever Shaw shares a chatgpt.com/share/... link (or asks to "scrape this convo", "save this ChatGPT chat", "grab the transcript", "pull the full conversation", "copy this whole chat to a file"). Also fires when a naive copy/paste or reader-mode grab of a ChatGPT share only returns part of the thread and Shaw says "that's not the full thing." Handles the virtualization gotcha that hides most turns from a single read. Do NOT use for Claude share links, generic web articles (use a normal fe...

Firwat Extract Chatgpt Transcript op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Extract Chatgpt Transcript besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Extract Chatgpt Transcript an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ShawhinT/non-coding-skills/tree/main/extract-chatgpt-transcript an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Extract Chatgpt Transcript benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Extract Chatgpt Transcript benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Extract Chatgpt Transcript domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Extract Chatgpt Transcript gratis?

De Skill gëtt vum ShawhinT op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇