How To Download Text

Hi, I’d like to download stories from this library. Is that possible? Thank you

This isn’t a supported feature. There is a way to get the plain text of a text via the API though. What you can do is:

  1. Open any text, your browser should show a URL in its address bar which starts with https://readlang.com/library/:bookID where the bookID is a 24 character alphanumeric code. e.g.: https://readlang.com/library/69063d8717bd61df06f641dd/from/0
  2. Change the URL to be in the format https://readlang.com/api/book/:bookID/plainText, keeping the bookID as before. e.g. following the previous example: https://readlang.com/api/book/69063d8717bd61df06f641dd/plainText - this URL will fetch the entire plain text for the text in question.
1 Like

I’m getting forbidden:

I’ve also tried this:
$ curl https://readlang.com/api/book/6910c9d75695002160cab7f1/plainText
Not authorized%

Please make sure you are signed in to a readlang account on the browser you’re using. If it still doesn’t work then it could be that I need to change something on the backend, I’ll look into it on Monday

Yeah I’m pretty sure I’m signed in. I see the loginToken in my cookie.

@Robert_Jewell Sorry about that. Please give it another try. It should work now.

Yep, works now. thank you!

1 Like