Learn R Programming

wordpressr

Journalism is in a state of crisis. Profitable outlets are driven by clickbait; unprofitable activities like investigative journalism or local news reporting simply disappear. How can we fix this?

Perhaps automation can help:

  1. Help writers be more productive
  2. Make marketing and distribution easier
  3. Make data-driven journalism easier for all

wordpressr is an attempt to bring more automation, and the ensuing benefits, to journalism and publishing in general. For a more thorough look at how to get started, please see the wordpressr vignette.

Are you interested in helping us? R developers can join us on GitHub. For organizations interested in learning more about our content marketing services, visit our main website at sixjupiter.com.

Installation

You can install the released version of wordpressr from GitHub with:

devtools::install_github("simitpatel/wordpressr")

Example: Retrieving Posts

Need to perform text analysis on your posts? Or summarise data by author, category, tag, or time? The get_wp_posts() function is a good place to start.

library(wordpressr)
recent_posts = get_wp_posts('https://altmediauncensored.com',300)

Copy Link

Version

Install

install.packages('wordpressr')

Monthly Downloads

35

Version

0.2.3

License

MIT + file LICENSE

Maintainer

Simit Patel

Last Published

June 1st, 2021

Functions in wordpressr (0.2.3)

create_wp_post

Create a New WordPress Page
update_wp_cat

Update a WordPress Category
%>%

Pipe operator
update_wp_tag

Update a WordPress Tag Page
get_wp_users

Retrieve WordPress User List
get_wp_tags

Get WordPress Tags
update_wp_page

Update WordPress Page
update_wp_post

Update a WordPress Post
get_wp_pages

Retrieve WordPress Pages
get_wp_posts_after

Retrieve WordPress Posts After a Certain Date
get_wp_authors

Get WordPress Authors
create_wp_page

Create a New WordPress Page
get_wp_posts

Retrieve WordPress Posts
create_wp_tags

Create a New WordPress Tag
delete_wp_tag

Delete a WordPress Tag
get_wp_cats

Get WordPress Categories
delete_wp_page

Delete a WordPress Page