Skip to content

Commit fcfbd46

Browse files
committed
podcast ep 11 transcription draft
1 parent 664668f commit fcfbd46

File tree

5 files changed

+385
-0
lines changed

5 files changed

+385
-0
lines changed

podcast/11/export-csv-to-md.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python3
2+
#
3+
# Quick helper to export my CSV to the transcription Markdown format. You might
4+
# have to fix the Windows line endings prior, and this will print an extra
5+
# newline at the end.
6+
#
7+
# I use `_Speaker:_` instead of `_Speaker_:`. Both have been used, mixed before.
8+
9+
import sys, csv
10+
11+
def export_to_md(csv_reader):
12+
for row in csv_reader:
13+
print("_{speaker}:_ {transcript}"
14+
.format
15+
( speaker = row[0]
16+
, transcript = row[1] ))
17+
print()
18+
19+
with open(sys.argv[1]) as csv_file:
20+
export_to_md(csv.reader(csv_file))

podcast/11/index.markdown

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Nadia Polikarpova
3+
episode: 11
4+
buzzsproutId: 9846037
5+
recorded: ? TODO
6+
published: ? TODO
7+
---
8+
9+
TODO intro

podcast/11/links.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* (links are TODO)

0 commit comments

Comments
 (0)