WordPress - Perl extension for posting to wordpress blogs
use WordPress; use WordPress; my $wp = WordPress->new( 'http://www.domain.com/xmlrpc.php', 'admin', 'pass!' ); # show the available categories my @categories = @{ $wp->get_categories }; print map { "$_\n" } @categories; # post in a random category $wp->post( "Hello, Perl asdf World!", "<h1>Posted via Perl</h1>", [ $categories[ rand @categories ] ] );
Post to wordpress with the help of perl
get_categories() post()
http://www.zoozle.net http://www.zoozle.org http://www.zoozle.biz http://www.p2p-blog.de http://www.zoozle.es
Sebastian Enger, <bigfish82-A!T-gmail.com>
Copyright 2006: John Bokma / Web: http://johnbokma.com/mexit/2006/07/06/perl-post-wordpress-xml-rpc.html Copyright 2006,2007: Sebastian Enger / Web: http://www.sebastian-enger.com/
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install WordPress, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WordPress
CPAN shell
perl -MCPAN -e shell install WordPress
For more information on module installation, please visit the detailed CPAN module installation guide.