Well, this was inevitable. (Background: Technorati API released.)
Remember that whole not-taking-on-new-projects thing? Well, that lasted about 24 hours. Which, honestly, is longer than I was expecting.
Open source, Python-licensed. Share and enjoy.
§
My god, man. You’re a machine.
— Shawn ![]()
He’s a *machine*?
Well, *that* explains a lot. Does Dora know?
You’re not the only one mixing Technorati and Python http://www.myelin.co.nz/post/2003/5/12/#200305124
Mine has several features that his lacks (support for optional start/format/version parameters in cosmos function, type conversion of integers and dates, HTTP proxy support, more options to set the license key), and his has several features that mine lacks (command line functionality, ability to run without an XML parser).
— Mark ![]()
“…Well, that lasted about 24 hours.”
That’s because you tried to quit cold turkey.
you might want to strip trailing newlines off the license read from a file. or maybe add something saying that the format of the license key file is important.
otherwise, still doesn’t run on my os x box with the default python install. something about not finding an xml parser. had the same problem with the xml examples in diveintopython.
— b ![]()
I was wondering how long it would take you… I thought it might be a while, so I started writing my own:
Unfortunately, the version of Python that comes with OS X does not include an XML parser. You will need to install PyXML [ http://pyxml.sourceforge.net/ ], or use Philip Pearson’s version (linked above) which does not use an XML parser.
— Mark ![]()
Mark, I remember reading that your acronym tags are generated by MT. You must’ve mistyped the expanded form of API, then. Because when hovering over it, a tooltip that says “Application Interface” appears. It should say “Application Programming Interface.”
– Minh Nguyễn
a solution to the mac os x problems seems to be to install readline and expat first. then rebuild and install python from source.
readline isn’t needed for xml support, but it’s a nice-to-have. if apple is going to continue to ship python, they should add these in.
— b ![]()
Do you sleep?
Noticed the recommended reading pane on the right hand side of the page… when are you going to get a book published Mark?
I’ve just set up a proper page for my one, and fixed some of the shortcomings noted by Mark above for v0.02.
http://www.myelin.co.nz/technorati_py/
It now gets the license key from all the same locations as PyTechnorati, lets you specify start= to the getCosmos method, properly dies on an HTTP error, and uses the new URLs.
Share and enjoy.
if rc: return rc.strip()
— Sam Ruby ![]()
I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)
§
© 2001–9 Mark Pilgrim