-
Notifications
You must be signed in to change notification settings - Fork 220
Open
Labels
v2Version 2 related issuesVersion 2 related issues
Description
Overview
Implement the new ParseOptions structure and update all parser APIs to accept it as part of gofeed v2.
Tasks
-
Create
ParseOptionsstruct with the following fields:KeepOriginalFeed bool- Retain reference to original format-specific feedStrictnessOptions- Sub-struct for parsing strictness controlsRequestOptions- HTTP request configuration for ParseURLUserAgent stringTimeout time.DurationIfNoneMatch string(ETag support)IfModifiedSince time.Time(conditional requests)Client *http.Client(custom HTTP client support)
- Other parsing toggles (e.g.,
ParseDates bool)
-
Update universal parser (
gofeed.Parser) methods:Parse(io.Reader, *ParseOptions) (*Feed, error)ParseURL(string, *ParseOptions) (*Feed, error)ParseString(string, *ParseOptions) (*Feed, error)
-
Implement
DefaultParseOptions()function for common use cases
Related Issues
- Limit the maximum number of feed items when parsing #199 (MaxItems support)
- Add support for Etag, Last-Modified, If-None-Match and If-Modified-Since http headers on request and response #111 (Conditional requests)
- Add support proxy setting for parserURL #165 (Proxy/custom HTTP client support)
- RSS "source" attribute #229, Make Feed keep and expose a reference to the original feed object #235 (KeepOriginalFeed)
Parent Issue
- RFC: gofeed v2 – Proposed Changes #241 (RFC: gofeed v2)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
v2Version 2 related issuesVersion 2 related issues