Have you ever wanted to get the underlying RSS feed from a podcast's iTunes page? Have you ever needed to do it in Go? Well this is the package for you.
go get github.com/deepilla/itunes
Import the itunes package.
import "github.com/deepilla/itunes"
Call the ToRSS function.
url, err := itunes.ToRSS("https://itunes.apple.com/us/podcast/s-town/id1212558767?mt=2")
if err != nil {
log.Fatal(err)
}
fmt.Println("RSS feed is", url) // outputs "RSS feed is http://feeds.stownpodcast.org/stownpodcast"
Note: This package will not work on iTunesU pages as they don't have publicly available feeds.
itunes is provided under an MIT License. See the LICENSE file for details.