python wordpress xmlrpc get post id

Solutions on MaxInterview for python wordpress xmlrpc get post id by the best coders in the world

showing results for - "python wordpress xmlrpc get post id"
Aarón
29 Oct 2020
1from wordpress_xmlrpc import Client
2from wordpress_xmlrpc.methods.posts import GetPosts
3wp = Client("https://wordpress.example.com/xmlrpc.php", "admin", "password")
4allposts = wp.call(GetPosts())
5for thepost in allposts:
6    print thepost.id
7