Has anyone succeded in category filtering the import dump using this script
http://meta.wikimedia.org/wiki/Data_dumps#Perl_importing_script
and if yes, could you please post here a working version of the script?
Thank you
Plamen Gradinarov wrote:
Has anyone succeded in category filtering the import dump using this script
http://meta.wikimedia.org/wiki/Data_dumps#Perl_importing_script
and if yes, could you please post here a working version of the script?
Thank you
That perl script is not supported by MediaWiki developers, you want to contact the original author to get more details :)
Additionaly, posting details about the issue will help tracking what's wrong.
Thank you, Ashar!
I am trying to contact the developer, who is a PhD student in Mathematics, as seen from the credentials on his site.
What I get is the trivial 500 Internal Server Error when going to mysite/cgi-bin/import.pl
Have no whatever experience in Perl, but seems to me this code is wrong
#$page->text } ;
Yet even commenting the two lines does not help, neither does chmod-ing to any possible values.
It would be great if this particular code get the official support of the WM Team, because it allegedly does something revolutionary useful - importing only the articles in selected categories.
Plamen
That perl script is not supported by MediaWiki developers, you want to contact the original author to get more details :)
Additionaly, posting details about the issue will help tracking what's wrong.
Plamen Gradinarov wrote: <snip>
What I get is the trivial 500 Internal Server Error when going to mysite/cgi-bin/import.pl
<snip>
You most probably need to run it from a shell! Try:
$ perl import.pl
// You most probably need to run it from a shell! Try: // $ perl import.pl
Thanks for the advice, Ashar! This is what I get
# perl cgi-bin/import.pl Can't locate Parse/MediaWikiDump.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at cgi-bin/import.pl line 2. BEGIN failed--compilation aborted at cgi-bin/import.pl line 2.
line 2 says use Parse::MediaWikiDump;
Plamen
mediawiki-l@lists.wikimedia.org