Created
January 21, 2018 04:55
-
-
Save parzibyte/cf524b03a744fe924a5fab6f1904e8b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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