Skip to content

PCC58 bbelderbos#471

Merged
pybites merged 1 commit intopybites:communityfrom
bbelderbos:PCC58
Jan 7, 2019
Merged

PCC58 bbelderbos#471
pybites merged 1 commit intopybites:communityfrom
bbelderbos:PCC58

Conversation

@bbelderbos
Copy link
Collaborator

@bbelderbos bbelderbos commented Jan 7, 2019

Difficulty level (1-10): [3]
Estimated time spent (hours): [2]
Completed (yes/no): [Yes]
I stretched my coding skills (if yes what did you learn?): [Nice challenge! I scraped Talk Python's RSS feed (requests/ feedparser) getting the transcripts from GH, saved all this in a sqlite3 DB, also wrote a function to generate an HTML for consumption on my Kindle (after Save-to-PDF on Mac). Some details: decode("utf-8") to work around some transcripts being stored as bytes (required some debugging), f'{episode_id:0>3}' as alternative for zfill, cur.executemany is awesome as it works flawlessly with a generator of namedtuples, to get row dicts from sqlite use conn.row_factory = sqlite3.Row, I also used writelines for the first time!]
Other feedback (what can we improve?): []

@bbelderbos
Copy link
Collaborator Author

This was fun!
screenshot 2019-01-07 at 15 17 35

@pybites pybites merged commit f6149fa into pybites:community Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants