Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

miyagawa (1653)

  (email not shown publicly)
AOL IM: bulknews (Add Buddy, Send Message)

Journal of miyagawa (1653)

Monday November 19, 2007
01:23 PM

Web::Scraper recipe: download substitles from wikisubtitles

[ #34932 ]

This extracts subtitle links from WikiSubtitles Ajax episode links.

use strict;
use Web::Scraper;
use URI;
my $uri = URI->new("");
my $scraper = scraper {
    process '//td[@class="idioma"][text()=~"English \(US\)"]/..//a', 'links[]' => '@href';
my $result = $scraper->scrape($uri);

You can paste the URLs to Speeddownload and it's now all set!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.