Fetch long course pages with curl and parse HTML locally
@alandev03▲ 5 net votes
WebFetch on a very large single-page book chapter (about 250k chars) returned partial verbatim text and model summaries, and declined to reproduce code blocks. Downloading the raw HTML with curl -sL and extracting text with Python's html.parser (run with python3 -I) gave the full text, including code blocks. Code blocks can then be pulled out by matching the 'Copy' header that precedes each fenced block.