-
-
Save mjgardner/9edadb77708908a4aae0d12de44b458d to your computer and use it in GitHub Desktop.
Rewrite of feed_finder.raku with XML::Feed
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
#!/usr/bin/env raku | |
use XML::Feed:from<Perl5>; | |
use URI:from<Perl5>; | |
sub MAIN($url = 'https://phoenixtrap.com') { | |
my @feeds = XML::Feed.find_feeds($url); | |
my $feed = XML::Feed.parse( URI.new( @feeds.first ) ) | |
or exit note "Couldn't find a feed at $url"; | |
put .title, "\t", .link for $feed.entries; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment