ello export a feed as JSON, here’s its name structure http://ello.co/username.json but you need to be logged in, god knows why; if not the file returns a version of the profile data. This post thus deals mainly with how to automate ello’s login, the problem of converting the JSON to XML is dealt with on a post of the same name. This post morphed into a generic web login via scripts.
Here are some previous attempts to reverse engineer the api,
The third URL discusses using the unofficial API to perform this but documents the fact that the ello team oppose it and have recently introduced a xscripting defence which makes it much harder to use a previously issued cookie. The authentication hack is not well documented. At the moment the authentication is session and cookie based which is why my experiments my experiments with wget and curl have failed. i.e. they both bring down the profile not the feed.
I am considering a scripting solution, first Python,
Some detailed examples using python tools
- http://stackoverflow.com/questions/2910221/how-can-i-login-to-a-website-with-python mentions package requests
For more checkout, this google search, “web login using python”
however the first of these links, contains proposals pointing at alternative scripting, using Selenium, mechanize & twill.
I have tried twill, the login is tricky, and not well documented, or I am too stupid. the form hosting page, http://elllo.co/enter has form entry field names containing , and something isn’t working. (It refuses to recognise the form fields.) ello detects the twill go statement and places a captcha/unblock request screen in the way. Do I continue down this path or shall I look at the at the basic python libraries.
I was also pointed at MaxQ, an automated web site test harness, for more see http://wiki.davelevy.info/web-site-testing-with-maxq/ but I havn’t got this to work.
I found the reference to eautiful Soap a python based document parser, helpful, may be for identifying the document structure and thus the arguments to twill
In some of my reading I was advised to look at Tamper Data,
I should bear in mind that they are promising RSS so I don’t want to invest too much time. (Perhaps I should invest in the other part of the problem, converting JSON to XML.)
Do I miss second brain?