Well, the automated posting is back. I just couldn’t stay away from it. Except this time:
- I’ve kept the link posts from del.icio.us and the Flickr posts out of the main weblog. They show up on the side.
- They update every hour instead of each day.
- Each link or picture is its own post, upon which you can comment.
- They stay out of the main RSS feed, too. However, you can subscribe to a separate feed just for the sidebloggin’! If you’re into that kind of thing.
Because WordPress (understandably) as a really clunky way of posting by email (you have to send the email, then hit Wordpress to make it POP into the email account) and no documented REST interface, I ended up doing this using the Python mechanize module. It seemed hacky, but then I got over it.
Mechanize is pretty smooth, but unfortunately, the current nature of web forms is going to make it less useful, unless it extends to be able to execute javascript. Forms are generated now, and what’s generated is often pretty messy, with a lot of unnamed elements. That can be gotten around, though. The real problem is that, instead of having the form do the POST, submit buttons on forms are often just javascript triggers, and some javascript function creates the actual POST request.
This is what stopped me from extending my autoposting script to also drop the links into Facebook “Posted Items,” which also have no explicit API support. Then, even more people could have seen my links and my important opinions about them! I actually started to try to determine what kind of POST request the javascript in their “share on Facebook” bookmarklet generated, but then I thought: Wait. Why the hell am I doing this? And then, I stopped.