Forum - View topicEncyclopedia interface for Perl
|
Author | Message | ||
---|---|---|---|
Dolda2000
Posts: 10 Location: Täby, Sweden |
|
||
Hi all!
For all the Linux and Perl junkies out there, I recently wrote a little Perl module that can fetch data from the encyclopedia, and returns some of the relevant stuff in a hash reference. If you want to fetch it or take a peek at it, it's available here: http://svn.dolda2000.com/svn/r/src/utils/ANN.pm Personally, I've used it for a couple of small things, including a program to fill in ID3 tags automatically for opening/ending songs. It also does some caching, so it ought to relieve some load on the ANN web server while speeding up the response. It can certainly be improved a great deal, but it's working good enough for me as it is. |
|||
Dan42
Chief Encyclopedist
Posts: 3794 Location: Montreal |
|
||
Eventually we'll provide some xml-based APIs to provide access to some of the encyclopedia data, but in the meantime this script is pretty nifty. However, it does rely a lot on the stylistic elements of the page (e.g. "CLASS=HOVERLINE" or " ") which may eventually change, so I can't predict when this will break.
|
|||
Dolda2000
Posts: 10 Location: Täby, Sweden |
|
||
Yeah, I know -- I just couldn't think of another way of doing it. If there's any way I can help in creating an XML-based API for the encyclopedia, don't hesitate to let me know. |
|||
jqsilver
Posts: 30 |
|
||
I know this thread is a few years old, but I'd definitely be interested in using an ANN api, both for the encyclopedia and for My Anime (which I'd want to integrate with my facebook profile, for example).
|
|||
All times are GMT - 5 Hours |
||
|
Powered by phpBB © 2001, 2005 phpBB Group