Cleaning up the API

Forum for volunteer developers working on Baka-Tsuki related applications (Baka-Reader, BTprince, etc).

Moderators: thelastguardian, Fringe Security Bureau, Senior Editors, Senior Translators, Alt. Language Translator/Editor, Executive Council, Project Translators, Project Editors

animeout
Kyonist
Posts: 18
Joined: Thu Feb 13, 2014 7:45 am
Favourite Light Novel:

Re: Cleaning up the API

Post by animeout »

I hate to say this as well, but quite franky mediawiki itself is really annoying to work with, atleast from a dev point of view.

As per the BR-Ex, am not sure but most probably no, since both our backends are different and the way both apps will work is different as well. Though might provide a way to import your BR-Ex profile (bookmarks, etc.) later on
alec43
Reader
Posts: 6
Joined: Thu May 14, 2015 6:10 am
Favourite Light Novel:

Re: Cleaning up the API

Post by alec43 »

Hi !

Do you api recover all images ?

When I try wikimedia api for get all illustration it doesn't return all file example :

Wiki page => https://www.baka-tsuki.org/project/inde ... ustrations

Request => http://www.baka-tsuki.org/project/api.p ... ustrations

Actually I work on Phonegab type script app ( https://github.com/Masclaux/LightReader beware crappy code ). If your api work I can work faster ( no need to write parser )
User avatar
Shadowys
Project Translator
Posts: 246
Joined: Sun Dec 30, 2012 5:15 am
Favourite Light Novel: Zero No Tsukaima
Location: Somewhere in Malaysia
Contact:

Re: Cleaning up the API

Post by Shadowys »

I have not done the API for getting text in single pages, but for this if you're using the media wiki API you have to repeatedly make a query call/set the limit of data received higher.

For this kind of stuff it's better to parse it directly from the rendered html.

http://baka-tsuki.org/project/api.php?a ... ustrations

But now you've said it, I would clean up the API for getting information from chapter pages in these few days
Winter's the time of the year,
when the cold chill the skin,
from the very within,
but you grasped my hand,
your eyes shedding a frozen tear.
Our eyes met,
and warmth filled the air.
Post Reply

Return to “Developers and Code”