Skip to content

paul-jean/blog-this

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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