utilities/snippets_cli_go#2: Fetch and parse RSS feed



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 27-Sep-24 08:10



Description

The first thing the CLI needs to be able to do is to fetch and parse a RSS feed.

As snippets hasn't actually been migrated to Nikola yet, we'll use https://www.bentasker.co.uk/rss.xml (also generated by Nikola)



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 10fbb21740af7f29a9748241a00be74cc685c158

Commit: 10fbb21740af7f29a9748241a00be74cc685c158 
Author: B Tasker                            
                            
Date: 2024-09-27T09:13:39.000+01:00 

Message

feat: fetch and (lightly) parse a RSS feed (utilities/snippets_cli_go#2)

+56 -0 (56 lines changed)

The commit above simply fetches and prints the title with gofeed - there's obviously a chunk more work to do before this issue can be closed.

Details of the structure of the parsed feed can be found at https://github.com/mmcdole/gofeed/blob/master/translator.go#L40

verified

mentioned in commit d7aec92b065c45b8ad26c9a0fa0ca3e9e44dccdc

Commit: d7aec92b065c45b8ad26c9a0fa0ca3e9e44dccdc 
Author: B Tasker                            
                            
Date: 2024-09-27T10:27:39.000+01:00 

Message

feat: iterate through feed items extracting the bits that we'll want to look at (utilities/snippets_cli_go#2)

This doesn't yet do anything particularly useful, but shows how we'll iterate through once searching starts being implemented

+19 -2 (21 lines changed)

mentioned in issue #4