{"id":36912380,"url":"https://github.com/mutablelogic/go-rss","last_synced_at":"2026-01-12T15:59:59.985Z","repository":{"id":331638977,"uuid":"1131674678","full_name":"mutablelogic/go-rss","owner":"mutablelogic","description":"Yet another RSS feed parser","archived":false,"fork":false,"pushed_at":"2026-01-10T13:52:39.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T04:17:06.410Z","etag":null,"topics":["golang","rss","rss-parser"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mutablelogic/go-rss","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mutablelogic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-10T13:34:08.000Z","updated_at":"2026-01-10T13:54:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mutablelogic/go-rss","commit_stats":null,"previous_names":["mutablelogic/go-rss"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mutablelogic/go-rss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutablelogic%2Fgo-rss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutablelogic%2Fgo-rss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutablelogic%2Fgo-rss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutablelogic%2Fgo-rss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mutablelogic","download_url":"https://codeload.github.com/mutablelogic/go-rss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutablelogic%2Fgo-rss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T15:50:39.657Z","status":"ssl_error","status_checked_at":"2026-01-12T15:49:49.297Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","rss","rss-parser"],"created_at":"2026-01-12T15:59:59.921Z","updated_at":"2026-01-12T15:59:59.975Z","avatar_url":"https://github.com/mutablelogic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# go-rss\n\nA Go library for parsing RSS feeds with support for iTunes and Podcasting 2.0 namespaces.\n\n## Installation\n\n```bash\ngo get github.com/mutablelogic/go-rss\n```\n\n## Usage\n\n### Parsing an RSS Feed\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    \"github.com/mutablelogic/go-rss\"\n)\n\nfunc main() {\n    // Open the RSS file\n    file, err := os.Open(\"podcast.rss\")\n    if err != nil {\n        panic(err)\n    }\n    defer file.Close()\n\n    // Parse the feed\n    feed, err := rss.Read(file)\n    if err != nil {\n        panic(err)\n    }\n\n    // Access feed information\n    fmt.Println(\"Title:\", feed.Channel.Title)\n    fmt.Println(\"Description:\", feed.Channel.Description)\n    fmt.Println(\"Link:\", feed.Channel.Link)\n\n    // Iterate through items\n    for _, item := range feed.Channel.Items {\n        fmt.Println(\"Episode:\", item.Title)\n        if item.Enclosure != nil {\n            fmt.Println(\"  Audio:\", item.Enclosure.URL)\n        }\n    }\n}\n```\n\n### Parsing from HTTP Response\n\n```go\nresp, err := http.Get(\"https://example.com/feed.rss\")\nif err != nil {\n    panic(err)\n}\ndefer resp.Body.Close()\n\nfeed, err := rss.Read(resp.Body)\nif err != nil {\n    panic(err)\n}\n```\n\n### Working with Dates\n\n```go\nfor _, item := range feed.Channel.Items {\n    if item.PubDate != nil {\n        pubTime, err := item.PubDate.Parse()\n        if err == nil {\n            fmt.Println(\"Published:\", pubTime.Format(time.RFC3339))\n        }\n    }\n}\n```\n\n### Working with Durations\n\n```go\nfor _, item := range feed.Channel.Items {\n    if item.Duration != nil {\n        duration, err := item.Duration.Seconds()\n        if err == nil {\n            fmt.Println(\"Duration:\", duration)\n        }\n    }\n}\n```\n\n## Supported Namespaces\n\n### RSS 2.0 Core Elements\n\n- Channel: title, link, description, language, copyright, pubDate, lastBuildDate, categories, image, items, etc.\n- Item: title, link, description, author, pubDate, guid, enclosure, source, comments, etc.\n\n### iTunes Podcast Extension\n\nFeed-level elements:\n\n- `itunes:author`, `itunes:explicit`, `itunes:type`, `itunes:owner`, `itunes:block`, `itunes:complete`, `itunes:new-feed-url`\n\nItem-level elements:\n\n- `itunes:duration`, `itunes:image`, `itunes:explicit`, `itunes:episode`, `itunes:season`, `itunes:episodeType`, `itunes:block`\n\n### Podcasting 2.0 Extension\n\nFeed-level elements:\n\n- `podcast:locked` - Prevents unauthorized feed imports\n- `podcast:funding` - Donation/support links\n- `podcast:guid` - Globally unique podcast identifier\n- `podcast:medium` - Content medium type\n- `podcast:license` - Content license\n- `podcast:person` - Credits for hosts, producers, etc.\n- `podcast:location` - Geographic location\n- `podcast:value` - Cryptocurrency payment info (Value4Value)\n- `podcast:images` - Multiple image sizes\n- `podcast:trailer` - Preview/trailer episodes\n- `podcast:txt` - Verification/metadata text records\n- `podcast:liveItem` - Live streaming support\n\nItem-level elements:\n\n- `podcast:transcript` - Links to transcript files (SRT, VTT, JSON)\n- `podcast:chapters` - Links to chapter files (JSON)\n- `podcast:soundbite` - Highlight clips from episodes\n- `podcast:person` - Credits for hosts, guests, editors\n- `podcast:location` - Geographic location of episode\n- `podcast:alternateEnclosure` - Multiple audio formats/qualities\n- `podcast:value` - Payment info for specific episode\n- `podcast:images` - Episode-specific images\n- `podcast:license` - Episode-specific license\n- `podcast:txt` - Episode metadata\n- `podcast:socialInteract` - Comments via ActivityPub, etc.\n- `podcast:contentLink` - Related content links\n\n## Example: Accessing Podcasting 2.0 Elements\n\n```go\nfeed, _ := rss.Read(file)\nch := feed.Channel\n\n// Check if feed is locked\nif ch.Locked != nil \u0026\u0026 ch.Locked.Value == \"yes\" {\n    fmt.Println(\"Feed is locked by:\", ch.Locked.Owner)\n}\n\n// Get funding links\nfor _, funding := range ch.Funding {\n    fmt.Printf(\"Support: %s (%s)\\n\", funding.Value, funding.URL)\n}\n\n// Get transcripts for an episode\nfor _, item := range ch.Items {\n    for _, transcript := range item.Transcript {\n        fmt.Printf(\"Transcript (%s): %s\\n\", transcript.Type, transcript.URL)\n    }\n}\n\n// Get chapter markers\nfor _, item := range ch.Items {\n    if item.Chapters != nil {\n        fmt.Println(\"Chapters:\", item.Chapters.URL)\n    }\n}\n\n// Get people credited\nfor _, person := range ch.Persons {\n    fmt.Printf(\"%s: %s\\n\", person.Role, person.Value)\n}\n```\n\n## References\n\n- [RSS 2.0 Specification](https://www.rssboard.org/rss-specification)\n- [PSP-1 Podcast RSS Specification](https://github.com/Podcast-Standards-Project/PSP-1-Podcast-RSS-Specification)\n- [Podcasting 2.0 Namespace](https://github.com/Podcastindex-org/podcast-namespace)\n- [iTunes Podcast RSS](https://podcasters.apple.com/support/823-podcast-requirements)\n\n## License\n\nApache 2.0 License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutablelogic%2Fgo-rss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmutablelogic%2Fgo-rss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutablelogic%2Fgo-rss/lists"}