×
  • remind me tomorrow
  • remind me next week
  • never remind me
Subscribe to the ANN Newsletter • Wake up every Sunday to a curated list of ANN's most interesting posts of the week. read more

Forum - View topic
Encyclopedia interface for Perl




Anime News Network Forum Index -> Site-related -> Encyclopedia
View previous topic :: View next topic  
Author Message
Dolda2000



Joined: 18 Mar 2004
Posts: 10
Location: Täby, Sweden
PostPosted: Sun Oct 16, 2005 9:32 pm Reply with quote
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. Smile
Back to top
View user's profile Send private message Visit poster's website My Anime My Manga
Dan42
Chief Encyclopedist


Joined: 02 Jan 2002
Posts: 3794
Location: Montreal
PostPosted: Fri Oct 21, 2005 2:07 pm Reply with quote
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.
Back to top
View user's profile Send private message Visit poster's website AIM Address My Anime My Manga
Dolda2000



Joined: 18 Mar 2004
Posts: 10
Location: Täby, Sweden
PostPosted: Sun Oct 23, 2005 4:01 pm Reply with quote
Dan42 wrote:
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.

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.
Back to top
View user's profile Send private message Visit poster's website My Anime My Manga
jqsilver



Joined: 27 Jun 2006
Posts: 30
PostPosted: Thu Jul 24, 2008 1:00 am Reply with quote
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).
Back to top
View user's profile Send private message Visit poster's website My Anime My Manga
Display posts from previous:   
Reply to topic    Anime News Network Forum Index -> Site-related -> Encyclopedia All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group