Do not follow this link

~lobisquit/podcast_fetcher_ilpost

Convert podcasts from IlPost into a local RSS feed
eef1999e — Enrico Lovisotto a month ago
Fixed .gitignore
a3138112 — Enrico Lovisotto a month ago
Fixed description fetch logs
7cf693e9 — Enrico Lovisotto a month ago
Caching descriptions as well, to avoid continuous scraping

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~lobisquit/podcast_fetcher_ilpost
read/write
git@git.sr.ht:~lobisquit/podcast_fetcher_ilpost

You can also use your local clone with git send-email.

#IlPost audio RSS feed extractor

This program fetches the latest IlPost releases from one channel via RSS, plays to a virtual Pulse interface, records them with ffmpeg and creates a new RSS feed pointing to the downloaded files.

This is meant for personal use in a podcast app.

#How to configure

The configuration file is a json-encoded list of dictionaries like the following.

[
    {
        "label": "<label to assing the feed>",
        "feed_url": "<url of the RSS feed associated to the IlPost channel>",
        "logo_url": "<url of the logo to set in the RSS feed>"
    }
]

A folder with the label name is created for each channel, with mp3 files named with the IlPost episodes file name. Files are matched with the title, etc. in the created RSS feed.

#How to run

The dependencies are the following

  • Python selenium
  • Python feedparser
  • Python pulsectl
  • Python feedgen
  • ffmpeg
  • pulseaudio
  • firefox
  • geckodriver
  • which

The program is run by setting the credentials, package system variables and opening the configuration file like this.

export BASE_URL=podcast.example.com
export USERNAME=<username>
export PASSWORD=<password>
export FIREFOX=$(which firefox)
export GECKODRIVER=$(which geckodriver)

python podcasts_ilpost.py configuration.json
Do not follow this link