Skip to content

Instantly share code, notes, and snippets.

@yusukebe
Created July 3, 2009 11:52
Show Gist options
  • Select an option

  • Save yusukebe/140075 to your computer and use it in GitHub Desktop.

Select an option

Save yusukebe/140075 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use LWP::Simple;
use XML::Simple;
use Unicode::RecursiveDowngrade;
my $url =
"http://www.dmm.co.jp/digital/videoa/-/list/=/article=actress/id=6644/ch_navi=actress/sort=date/rss=create/_jloff=1/";
my $content = get($url);
my $ref = XMLin($content);
my $rd = Unicode::RecursiveDowngrade->new;
$ref = $rd->downgrade($ref);
for my $item ( @{ $ref->{item} } ) {
print $item->{title} . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment