WordPress Library

Versione: 1.0 (2 Maggio 2005)

LinuxWindowsMac OS X



Italiano

WordPress è ritenuto uno dei più apprezzati strumenti per la creazione di blog. Questo software è installato da moltissime persone e come quasi tutti gli strumenti per blog ha un sistema di amministrazione remota basata su XML-RPC.

XML-RPC è un protocollo per la creazione di WebServices che sfrutta HTTP e fa uso di messaggi XML. WordPress permette di essere amministrato (non completamente) tramite richieste XML.

Questa libreria permette di comandare da remoto una installazione di WordPress. Utilizzare la libreria è molto semplice e si possono realizzare piccoli script o programmi che permettono di automatizzare la pubblicazione di articoli sul proprio blog/sito gestito con WordPress.

Ecco un piccolo esempio:

import wordpresslib
url = 'http://www.miosito.it/wordpress/xmlrpc.php'
wp = wordpresslib.WordPressClient(url, 'username', 'password')
wp.selectBlog(0)
post = wordpresslib.WordPressPost()
post.title = 'Titolo del post'
post.description = 'Testo del post'
idPost = wp.newPost(post, True)

La libreria è rilasciata con la licenza GNU LGPL ed è liberamente scaricabile da questo sito.

In questo momento sono disponibili le seguenti azioni:

  • Pubblicare un nuovo post
  • Modificare un vecchio post
  • Pubblicare un post in stato Draft
  • Eliminare un post
  • Cambiare le categorie di un post
  • Avere informazioni sul blog e sull'utente con cui ci si connette
  • Caricare file multimediali come immagini e video
  • Avere la lista dei post più recenti
  • Avere l'ultimo post
  • Avere la lista dei Trackbacks di un post
  • Avere la lista dei Pingbacks di un post

English

WordPress is considered one of more appreciate blogs builders. This software is installed from many people and like most tools have a administration user interface based on XML-RPC protocol.

XML-RPC is a protocol for building WebServices that use HTTP and XML messages. WordPress can be controlled (not completely) by remote administration interface through XML messages.

With this library you can control remotely a WordPress installation. Use of library is very simple, you can write a small scripts or full applications that allows you to automate publishing of articles on your blog/site powered by WordPress.

This is a small example:

import wordpresslib
url = 'http://www.mysite.com/wordpress/xmlrpc.php'
wp = wordpresslib.WordPressClient(url, 'username', 'password')
wp.selectBlog(0)
post = wordpresslib.WordPressPost()
post.title = 'Post title'
post.description = 'Post content'
idPost = wp.newPost(post, True)

Library is released under terms of GNU LGPL and it's available for download from this site.

At this time are available these actions:

  • Publishing new post
  • Editing old post
  • Publishing draft post
  • Deleting post
  • Changing post categories
  • Getting blog and user informations
  • Upload multimedia files like movies or photos
  • Getting last recents post
  • Getting last post
  • Getting Trackbacks of post
  • Getting Pingbacks of post

Download
wordpresslib.zip
(33 Kb)


« Torna alla lista