Skip to content

paul-jean/blog-this

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WordPress blogging client for Mathematica

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published