This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rss' | |
require "csv" | |
rss_source = File.new('feed.xml') | |
rss = RSS::Parser.parse(rss_source, false) | |
CSV.open('test.csv','w') do |csv| | |
rss.items.each do |item| | |
title = item.title | |
date = item.pubDate.localtime.strftime('%Y/%m/%d') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Combine | |
import Foundation | |
enum CustomError: Error { | |
case retryError | |
case otherError | |
} | |
var count = 0 |
OlderNewer