Generate a self-hosted full-episodes RSS feed for APM's Live From Here.
The Live from Here radio program distributes only curated highlights in their official podcast feed, but full episodes are hosted on their website. This is a simple script to periodically scrape the site (using Puppeteer) and generate a full-episodes RSS feed that you can subscribe and listen from your preferred podcast client instead of on the website.
I host a feed at http://lifford.org/LFH-feed/feed.xml, but that's subject to removal at any time.
To host your own, you'll first need an FTP server of your own, then:
- Clone or download this repo.
- Install dependencies with
npmoryarn. - Open the
config-sample.jsonfile and fill out your details. The fields starting withFTPare for the automatic FTP connection, and the fields after that are for the published feed. TheIMG_URLfield will need to be the final published absolute path of thelfh-cover-img.jpgfile on your server after FTP transfer. - Make sure the
index.jsfile is executable on your machine. - Set up a
crontask on your machine to run theindex.jsscript at regular intervals.