소개
A Go library for fetching, parsing, and updating RSS feeds.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalrss
RSS is a small library for simplifying the parsing of RSS and Atom feeds. The package conforms to the RSS 1.0, RSS 2.0, and Atom 1.0 specifications.
If you encounter any problems with feeds being parsed incorrectly, please open an issue on GitHub.
Example usage:
package main
import (
"context"
"github.com/SlyMarbo/rss/v2"
)
func main() {
reader, err := rss.NewReader()
if err != nil {
// handle error.
}
feed, err := reader.Fetch(context.Background(), "https://example.com/rss")
if err != nil {
// handle error.
}
// ... Some time later ...
err = reader.UpdatePatiently(feed)
if err != nil {
// handle error.
}
}
The library does its best to follow the appropriate specifications and not to set the NextUpdate time
too soon. It currently follows all update time management methods in the RSS 1.0, 2.0, and Atom 1.0
specifications. If one is not provided, it defaults to 12 hour intervals. If you are having issues
with feed providors dropping connections, use WithDefaultUpdateInterval to set the default update
interval.
The project is not proactively maintained, but I'll respond to issues and PRs as soon as I can.
관련 프로젝트 살펴보기
불러오는 중…