Page 1 of 1
About AnimeDb script
Posted: 2006-07-02 15:27:23
by dalamar
First of all hello and thanks for this great catalog program!
Now, recently i've been having a problem with the Anidb script, it began with some errors in the titles i enquired (some fields weren't filled appropriately) and today the script doesnt respond at all.
E.g. when i enter a title it displays "Target not found" or something similar
Does this problem have anything to do with me? Have i done something wrong? (i changed the script a bit in order to have everything in English, e.g. i changed "Liste des episodes" into "Episode List" etc.) or is it a general script bug? Can anyone help me?
Thank you in advance
Posted: 2006-07-02 22:23:02
by draco31.fr
Hello,
First, I will thank you for using my script
It would be nice you could post your trascription in english of the script.
I'm not very good in english (in fact I'm pretty bad) so I wouldn't do it myself.
For your problem, I do have any answer but I think that AnimeDB block all the AMC request.
When AMC get the result's page, the page seems blank.
But if I enter the same url in FireFox, I got the good result's page.
Maybe Antp could test the script with another "tag" for the AMC's browser and tel me if it work.
------------------------------------------------------------------------------------
En français maintenant parce que je suis vraiment mauvais en anglais
1) merci d'utiliser mon script ^^
2) ça serait sympa que tu postes ta version traduite en anglais du script parce que parlant très mal l'anglais, je n'ai aps voulu le faire moi même.
3) Pour ton problème (et le mien aussi) je n'ai pas de réponse mais il semble que AnimeDB bloque les requête de AMC.
Quand AMC récupère la page des résultats, elle semble vide.
mais si je donne la même adresse à FireFox j'obtiens la bonne page de résultats.
Peut-être que Antp pourrait tester le script en changeant le "nom" du moteur de AMC et nous dire si cela marche.
Posted: 2006-07-02 22:42:10
by draco31.fr
I find another "bug" ...
I tested the url in Internet Explorer and it could not open it.
In fact, I can't enter the AniDB'web site with IE.
So if AMC use the IE browsing motor, it could have the same trouble !
It also good to know that AniDB is making some changes on the web site, and they are still in beta testing condition.
The site may already change soon.
-----------------------------------------------------------------------------------------
J'ai trouvé un autre 'bug'
J'ai essayé l'url dans Internet Explorer, et il n'arrive pas à l'ouvrir.
En fait, je ne peux pas acceder à anidb.info avec IE.
Donc, si AMC utilise le moteur de IE pour récupérer les pages web, il pourrait avoir les mêmes problèmes !!
A noter aussi que AniDB est en train de faire des modification au site web et ils sont encore en phase de béta-test.
The site sera sans doute à nouveau modifié.
Posted: 2006-07-04 19:48:52
by antp
AMC utilise son propre client HTTP, et s'identifie comme "Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)".
Peut-être que ça influence sur le comportement du site, il faudrait tester avec Firefox en mettant cet agent-id.
Posted: 2006-07-05 22:13:24
by draco31.fr
J'ai testé avec l'agent ID de AMC dans Firefox, et l'affichage est correct donc ça ne vient pas de là.
Cependant, avec l'agent ID d'internet explorer dans Firefox : tout est ok aussi, alors qu'avec Internet Explore (le soft) je ne peux pas accerder au site !!!
La page récupérée par la fonction Getpage donne ceci :
C'est très court je trouve et ça ressemble pas à du HTML
Pourtant l'url est la bonne ...
Bref, je suis dans l'impasse, et j'aurai besoin de ton aide Antoine pour comprendre ce qui arrive à AMC
EDIT: Bon à priori, IE n'est pas supporté par AniDB depuis mai 2004, bien que le fait d'utiliser le HTTP 1.1 permette d'acceder à AniDB sans encombres...
Cependant, cela n'explique toujours pas pourquoi avec la bonne url, le script n'arrive pas à récuperer la bonne page HTML ... ou alors il la tronque ...
NB: J'ai essayé avec cette url qui normalement donne les résultats pour "naruto" :
Code: Select all
http://anidb.info/perl-bin/animedb.pl?show=animelist&noalias=0¬inml=0&adb.search=naruto&orderby=name&orderdir=0
Posted: 2006-07-06 18:27:03
by antp
J'ai demandé à un ami : selon lui c'est la compression de la page (gzip) qui est en cause.
Dans Indy il y a sans doute une vieille version de cette lib (Indy étant ce que j'utilise dans AMC), ce qui fait que la page est mal décodée. Il y a le même problème avec un autre soft de download utilisant la même lib qu'AMC.
Posted: 2006-07-06 19:22:45
by draco31.fr
Et donc, est-ce qu'une mise à jour de la librairie d'Indy pour décompresser le gzip dans AMC est envisageable ? Sinon, y a-t-il un moyen de résoudre ce problème ?
Posted: 2006-07-07 15:50:17
by antp
Possible, il faudrait que je teste. Mais rien n'est sûr.
Ce problème de gzip est peut-être dû à un problème de config au niveau serveur, il faudrait voir s'ils ne peuvent pas le corriger (c'est l'occasion de demander s'ils acceptent que le script récupère les infos de leur site
)
Posted: 2006-07-11 09:10:25
by mrtakdnz
not English words didnt useful for all users... Please use English for a global forum...
You have got too many users all over the world... you must be careful...
Posted: 2006-07-11 17:36:26
by draco31.fr
OK, so I'll try to explain the problem in english ...
The Script for AniDB can't be fixed yet, because the website is using a recent gzip compression that is not supported by Ant Movie Catalog.
AMC is using the Indy Library for gzip decompression, so an upgrade of this library could probably solve the problem.
The other explaination given by Antp, is an error on the AniDB's server's configuration. He ask us to answer the AniDB webmasters about this and in the same time, to ask them if we are authorized to use the script.
Posted: 2006-07-11 19:38:54
by mrtakdnz
thnx much draco31.fr...
when i'm searching about AniDB script problem which i've got, i saw this topic and i cannot understand anything
thnks for the explanation...
is there any other link to control changes of; scripts, templates etc. (except forum)??
Posted: 2006-07-11 22:07:03
by antp
updated scripts are posted on
www.antp.be/temp/scripts until they are integrated in AMC setup, but except that there is nothing for updates. I should organize something on the site (and even integrate it into AMC for the scripts), but as usually I do not know when I will do that
Posted: 2006-07-12 00:15:17
by mrtakdnz
thnks much
Posted: 2006-07-20 17:27:28
by draco31.fr
----------------- En Français -----------------
Un ami à moi qui parle bien mieux l'anglais, a posté
un message sur le forum d'AniDB pour avoir quelques renseignements.
Apperement, les administrateurs ne veulent pas de script sous forme "d'aspirateur du site web", cependant il recommande l'utilisation d'une "API UDP" pour acceder à la base de donnée.
Pour cela il faut au préalable enregistrer le logiciel ...
cependant je ne sais pas si un script est faisable pour AMC utilisant cette "interface"
(j'ai pas compris comment marchait cette API)
Plus d'info
ICI et
LA sur le developpement de client pour AniDB.
Je suppose que toi, Antp, tu dois pouvoir savoir si c'est faisable ou non avec AMC et un script
----------------- In English -----------------
A friend of my has written
a message on the AniDB's forum to get some information.
It seems, the AniDB's administrator don't allow to get information by downloading webpages of the site but they promote the use of an "API UDP" to access the database.
For this, it is necessary to register the software in AniDB.
But I don't know if it is possible to make a script for AMC to use this pathway. (I don't understand how the API was working)
You'll get more information about the developement of the AniDB client
HERE and
THERE.
I suppose that Antp should know if it is possible or not with AMC and the use of a script.
Posted: 2006-07-20 18:00:30
by antp
--FR--
Malheureusement AMC sera incapable d'accéder à ce serveur. Il faut faire une connexion "bas niveau" au serveur en utilisant leur propre protocole, en remplacement de l'habituel HTTP. Et le module de script d'AMC n'est prévu que pour l'HTTP (qui est simple puisque seuls deux types de requêtes existent GET et POST - pour leur protocole il faudrait soit intégrer le protocole à AMC, soit permettre au script de faire des connexions réseaux et de manipuler les données obtenues).
Donc je pense qu'il faudra se passer de ce site, en attendant que je rajoute (mais quand ? en 2037 ?
) la possibilité de faire des plugins "compilés" en plus des scripts.
--EN--
Unfortunately AMC will be unable to access to that server. It requires a "low level" connection to the server using their own protocol, instead of the usual HTTP. And the script modile of AMC is ready only for HTTP (which is simple since only two type of requests exist GET and POST - for their protocol I would have to either integrate the protocol into AMC, or allow to the script to do network connections and handle the data that it receives).
So I think that we will have to forget that site for now, until I add (when ? in 2037 ?
) the possibility to write "compiled" plugins in addition of the scripts.
Posted: 2006-07-20 21:02:59
by draco31.fr
Dommage s'était un bon site ... notament pour ses images
Posted: 2012-12-26 11:11:13
by Jishin
Bonjour darco.
En cherchant un script AniDB pour AMC, je tombe sur ces vieux posts où tu sembles le plus calé sur le sujet.
As-tu eu l'occasion de développer un scripts récemment avec les nouvelles API de AMC/AniDB ?
Je pense que je ne suis pas le seul à utiliser ces 2 ressources...
Merci
Posted: 2012-12-31 11:28:53
by draco31.fr
Bonjour Jishin,
C'est effectivement un bien vieux post que tu déterre !!
Personnellement, je n'utilise plus AMC depuis que je suis passé sous Linux en 2007, et je n'ai plus suivi l'actualité du logiciel depuis.
Quant à AniDB, je ne pense pas qu'ils aient changé d'opinion sur l'aspiration Web.
Non seulement cela est gourmand en bande passante, mais c'est aussi peu fiable : un changement de look du site bloque le scraper. L'obligation de passer par une API est, il me semble, le meilleur choix pour l'admin web. Le fait de limiter à l'UDP était, en revanche, dommage.
Un accès via HTTP et une API XML comme dvdfr.com, aurait été plus facilement implémentable ... à l'époque.
Depuis lors, après une rapide recherche sur le site/forum d'AniDB, il semble qu'une API HTTP ait vue le jour
La doc est accessible sur le wiki :
http://wiki.anidb.net/w/HTTP_API_Definition
A toi l'honneur d'écrire le script qui va bien (c'est pas si compliqué !), ou de trouver le soutien dans la communauté actuelle d'AMC
Bonne continuation avec Ant Movie Catalog et AniDB