Skip to content

nsoufr/podfeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

podfeed

Podcast Feed Golang Parser

Usage

package main

import (
  "fmt"
  "log"

  "github.com/nandosousafr/podfeed"
)

func main() {
  ctx := context.Background()
  podcast, err := podfeed.Fetch(
    ctx,
    "http://feeds.soundcloud.com/users/soundcloud:users:212089450/sounds.rss"
  )
  if err != nil {
    log.Fatal(err)
  }

  fmt.Println(podcast.Title)
  // => CapyCast

  fmt.Println(podcast.Items[0].Title)
  // => Capycast #4 Solopreneur, Entrepreneur, Intrapreneur

  fmt.Println(podcast.Owner.Name)
  // => Ship It
}