I would like to get the content of posts from my WordPress blog. Using the RWordPress package, you can easily get categories and tags and headers, but what about message content?
# Download and load the package if (!require('RWordPress')) { devtools::install_github(c("duncantl/XMLRPC", "duncantl/RWordPress")) } library(RWordPress)
Here, for example, is the code for getting the categories, with my specification copied in brackets:
Cat <- getCategoryList(login = c([my user name] = '[my password'), .server = 'http://[my blog on].wpengine.com/xmlrpc.php')
The related SO question is not applicable since it does not use RWordPress [HTML and CSS and PHP coding] .
This site is about publishing on WordPress, not extracting it from WordPress [posting, not getting] . Another question uses xmlrpc, like RWordPress, and the call to getPosts, but it does not rely on R.
Posts <- getPosts(num = 100, blogid = 0L, login = c([my user name] = '[my password]'), .server = 'http://[my blog name].wpengine.com/xmlrpc.php')
The code above returns dates, names and status, but not content.
Thanks for any recommendations.
******************** Edit after the first answer
After requesting RWordPress and RWordPress , and then defining an object to log in and for .server, here is the console message:
> getPageList(blogid = 0L, login = WordpressLogin, .server = WordpressURL) Error in xml.rpc(.server, op, as.integer(blogid), names(login), as.character(login), : Problems
I find that βProblemsβ is not an informative error message for me.