in reply to RSS Parsing not working on new machine
The relevant code is
... my $rss = $parser->parse_string($feed); if(!$rss) { print " -- Feed is broken -- \n"; next FEED; }
The next step would be to look what is in $feed, and to remove the rest of the script to reproduce the problem.
In your code you already save the content to a file, so maybe you can reduce your code to something like:
my $feed = read_file( 'saved.rss' ); my $rss = $parser->parse_string($feed); if(!$rss) { print " -- Feed is broken -- \n"; next FEED; }
... but maybe the feed you retrieve already is empty?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: RSS Parsing not working on new machine
by wintermute115 (Acolyte) on Apr 15, 2025 at 10:19 UTC | |
by Corion (Patriarch) on Apr 15, 2025 at 10:55 UTC | |
by wintermute115 (Acolyte) on Apr 15, 2025 at 12:07 UTC |