Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 21, 2018 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/cf524b03a744fe924a5fab6f1904e8b0 to your computer and use it in GitHub Desktop.
Save parzibyte/cf524b03a744fe924a5fab6f1904e8b0 to your computer and use it in GitHub Desktop.
from wordpress_xmlrpc import Client
from wordpress_xmlrpc.methods import posts
usuario = ""
contraseña = ""
sitio = ""
cliente = Client(sitio, usuario, contraseña)
entradas = cliente.call(posts.GetPosts())
if len(entradas) > 0:
for entrada in entradas:
print(entrada)
else:
print("No hay entradas para mostrar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment