Simple Sinatra service to retrieve Wordpress content from a mysql database by Wordpress' permanent URL