Forum - View topicAPI Bug - Malformed xml output for companies report
|
Author | Message | ||
---|---|---|---|
pushrbx
Posts: 4 Location: United Kingdom |
|
||
Hi,
The following request is returning malformed xml: cdn.animenewsnetwork.com/encyclopedia/reports.xml?id=198 As I can see you wanted to merge some of the companies based on location but it's not working. Sorry if this problem has been already reported, but I couldn't find any similar topic. |
|||
Shiroi Hane
Encyclopedia Editor
Posts: 7580 Location: Wales |
|
||
Is there a reason you need that particular report through the API? It's just a list of companies that have a blank precision so shouldn't be of any use outside the encyclopedia itself.
|
|||
pushrbx
Posts: 4 Location: United Kingdom |
|
||
I'm using it for my database.
The datasheets of animes/mangas are based on the API in my database and also I'd like to store the info of the companies which are relevant to each anime/manga entry. It just gives a good starting structure to update it later with correct data. Basically it would be a skeleton for my database. Also im too lazy to write an algorithm which gets the studio/company information from the encyclopedia page of the anime/manga and generates the corresponding record in the database based on that. (parse html, generate model object instance, generate id, add ann id as reference, put it in the db) |
|||
Shiroi Hane
Encyclopedia Editor
Posts: 7580 Location: Wales |
|
||
I suspect the report was simply created in a way that makes it incompatible with the API. It was something dan threw together for this thread.
|
|||
pushrbx
Posts: 4 Location: United Kingdom |
|
||
Meanwhile I figured out that I have to just simply take the credits nodes from each anime/manga report and store those with a temporary entry and later I write another script which will go through on them and populates the db with the missing data. (lxml or beautifulsoup, fetch the corresponding encyclopedia page, and parse it.)
Anyway, its odd that you guys leave something like that in the API. It just confuses the "more serious" devs. |
|||
All times are GMT - 5 Hours |
||
|
Powered by phpBB © 2001, 2005 phpBB Group