Last active
January 28, 2026 07:29
-
-
Save visualblind/20d621a84ab68e23c6d8426bb9428284 to your computer and use it in GitHub Desktop.
Download Sam Harris Making Sense Full Subscriber Podcast Episodes for Free
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # URL: https://blog.travisflix.com/download-sam-harris-making-sense-full-subscriber-podcast-episodes-for-free/ | |
| # Tested with PowerShell 5.1 on Windows and PowerShell 7.5.4 on Linux | |
| # Fetch RSS feed and extract MP3 URLs and output to file | |
| (Invoke-WebRequest -Uri 'https://rss.samharris.org/feed?uid=134655').Content -split "`n" | | |
| Where-Object { $_ -like '*mp3*' } | | |
| ForEach-Object { | |
| $_ -replace ' <enclosure length="0" type="audio/mpeg" url="' -replace '"/>' -replace '\?.*' | |
| } | Out-File -FilePath '.\feed134655.txt' -Encoding utf8 | |
| # Download files (skip if already exist) | |
| $urls = Get-Content -Path '.\feed134655.txt' | |
| foreach ($url in $urls) { | |
| $filename = [System.IO.Path]::GetFileName($url) | |
| $destinationPath = Join-Path -Path $pwd.Path -ChildPath $fileName | |
| if (-not (Test-Path $destinationPath)) { | |
| Invoke-WebRequest -Uri $url -OutFile $filename | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| curl -s 'https://rss.samharris.org/feed?uid=134655' | grep mp3 | \ | |
| sed -E 's/ <enclosure length="0" type="audio\/mpeg" url="//;s/"\/>//;s/\?.*//' > ./feed134655.txt && \ | |
| wget --continue --no-clobber --content-disposition --trust-server-names -i ./feed134655.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment