WordPress blogging client for Mathematica
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
HTMLFiles
images
BlogClient.m
README.md
example-notebook.html
example-notebook.nb
test-run.nb

README.md

blog-this

WordPress blogging client for Mathematica

usage

Open the file test-run.nb in Mathematica. You'll see some Mathematica code like this:

    PrependTo[$Path, NotebookDirectory[]];

    << BlogClient`

    nbfile = FileNameJoin[{NotebookDirectory[], "example-notebook.nb"}];

    PostNotebook[nbfile, "SiteAddress" -> "WP_SITE_ADDRESS", 
     "Port" -> ""(* usually *), "XMLRPCServerPath" -> "xmlrpc.php", 
      "Title" -> "Mapping random walks to a closed path", 
       "Username" -> "YOUR_WP_USERNAME", "Password" -> "YOUR_WP_PASSWORD", 
        "Categories" -> {}, "Debug" -> True]

Fill in your user name and password in the "Username" and "Password" options. Also set your blog post title in the "Title" option. You can also add categories using the "Categories" option.

You may also need to change the WordPress path and port number options, depending on how you set up your WordPress installation.

Now evaluate those cells. If the "Debug" option is set True, you'll see a bunch of log messages showing the progress of the HTML and image export, like this:

example export

more info

See my blog post describing the XML-RPC encoding/decoding.