Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Parse::MediaWikiDump 0.40

    Download button

    No screenshots available
    Downloads: 414  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tyler Riddle | More programs
    Perl Artistic License / FREE
    March 14th, 2007, 05:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Parse::MediaWikiDump description

    Parse::MediaWikiDump is a Perl module with tools to process MediaWiki dump files.

    Parse::MediaWikiDump is a Perl module with tools to process MediaWiki dump files.

    SYNOPSIS

    use Parse::MediaWikiDump;

    $source = 'dump_filename.ext';
    $source = *FILEHANDLE;

    $pages = Parse::MediaWikiDump::Pages->new($source);
    $links = Parse::MediaWikiDump::Links->new($source);

    #get all the records from the dump files, one record at a time
    while(defined($page = $pages->next)) {
    print "title '", $page->title, "' id ", $page->id, "n";
    }

    while(defined($link = $links->next)) {
    print "link from ", $link->from, " to ", $link->to, "n";
    }

    #information about the page dump file
    $pages->sitename;
    $pages->base;
    $pages->generator;
    $pages->case;
    $pages->namespaces;
    $pages->current_byte;
    $pages->size;

    #information about a page record
    $page->redirect;
    $page->categories;
    $page->title;
    $page->namespace;
    $page->id;
    $page->revision_id;
    $page->timestamp;
    $page->username;
    $page->userid;
    $page->minor;
    $page->text;

    #information about a link
    $link->from;
    $link->to;
    $link->namespace;

    This module provides the tools needed to process the contents of various MediaWiki dump files.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    process dump files | MediaWiki dump files | Perl module | Parse::MediaWikiDump | process | MediaWiki

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM