Complete list of book IDs

Comments about LibriVox? Suggestions to improve things? News?
Post Reply
pkosenko
Posts: 21
Joined: December 6th, 2013, 3:34 pm
Location: Santa Monica, California, USA
Contact:

Post by pkosenko »

This may seem pretty simple, but I have a feed going for importing Librivox book information to a Drupal site (it is in development and not public yet). Administrators can enter the path to the book ID API page and import information (rather than have to retype it).

However, they need to KNOW the ID, and I don't see any place where the IDs of books are listed. They aren't in the Librivox book page URL, which seems to be using TITLE aliases. And when I look at the underlying page SOURCE for a book, I do not see ANY instance of the book's item ID anywhere.

So . . . aside from guessing what a book's ID is, is there any LISTING of IDs available on the site, or any URL that will return a complete listing of books?

As you are aware, https://librivox.org/api/feed/audiobooks/ , is limited to returning a list of only 50 books (and it seems to return random ones at that).
annise
LibriVox Admin Team
Posts: 38635
Joined: April 3rd, 2008, 3:55 am
Location: Melbourne,Australia

Post by annise »

As far as I know - there is no list of ID numbers anywhere

Anne
dlolso21
LibriVox Admin Team
Posts: 4827
Joined: January 11th, 2011, 12:13 pm

Post by dlolso21 »

The default number of items returned by the API is 50.

For more information on using the Librivox API see this info page https://librivox.org/api/info or the LibriVox API Discussion Thread.

You could use the <id>830</id> from the API for example <title>Allan Quatermain</title> can be access by either http://librivox.org/allan-quatermain-by-h-rider-haggard or http://librivox.org/830

If you are looking for a consistent place to extract the ID number from the Catalog page source use the iTunes and RSS links, for this title they are:

<dt>Subscribe by iTunes</dt>
<dd><a href="itpc://librivox.org/rss/830" class="book-download-btn">iTunes</a></dd>

<dt>RSS Feed</dt>
<dd><a href="http://librivox.org/rss/830" class="book-download-btn">RSS</a></dd>

David O
pkosenko
Posts: 21
Joined: December 6th, 2013, 3:34 pm
Location: Santa Monica, California, USA
Contact:

Post by pkosenko »

Yes, I have been consulting the API page for information in my work. I DID just notice that the RSS feeds for books are based on their IDs. So for the time being I will tell people to reference those. I suppose either you or I would have to write the program that creates the basic list of all IDs (plus author and title)?

*******************
dlolso21 wrote:The default number of items returned by the API is 50.

[Yes, I know.]

For more information on using the Librivox API see this info page https://librivox.org/api/info or the LibriVox API Discussion Thread.

[Yes, I have been referring to it for development.]

You could use the <id>830</id> from the API for example <title>Allan Quatermain</title> can be access by either http://librivox.org/allan-quatermain-by-h-rider-haggard or http://librivox.org/830

[But my point is that the regular Librivox front end seems to be always using the title alias . . . and doesn't even hide the ID in the source HTML. Maybe you might want to add such an "easter egg" (hidden id # in HTML source)?]

If you are looking for a consistent place to extract the ID number from the Catalog page source use the iTunes and RSS links, for this title they are:

[The information below will work for the time being. THANKS.]

<dt>Subscribe by iTunes</dt>
<dd><a href="itpc://librivox.org/rss/830" class="book-download-btn">iTunes</a></dd>

<dt>RSS Feed</dt>
<dd><a href="http://librivox.org/rss/830" class="book-download-btn">RSS</a></dd>

David O
ekzemplaro
Posts: 2027
Joined: December 31st, 2011, 7:17 am
Location: Tochigi,Japan
Contact:

Post by ekzemplaro »

Hello pkosenko san,
pkosenko wrote:is there any LISTING of IDs available on the site, or any URL that will return a complete listing of books?
Just visit this page.
http://ekzemplaro.org/librivox/statistics/
Click id_info button on the right upper.

You'll see what you want.

Cheers,
Masa
Post Reply