onion.to does not host this content; we are simply a conduit connecting Internet users to content hosted inside the Tor network..
onion.to does not provide any anonymity. You are strongly advised to download the Tor Browser Bundle and access this content over Tor.

For more information see our website for more details and send us your feedback.
Notification: BY:
URL:
COMMENT:

Author Topic: Lazylibrarian  (Read 740 times)

December 10, 2018, 04:49:54 PM
Read 740 times

badoer

  • *
  • Information
  • Novice reader
  • Posts: 2
Lazylibrarian
« on: December 10, 2018, 04:49:54 PM »
Hi,

there is a tool called lazylibrarian which watches wished books and downloads them automatically.
Unfortunatedly only via usenet or torrent.

Maybe someone could develop a plugin/interface for Imperial Library?

Or does someone knows something like this?

Regards

January 02, 2019, 08:50:02 PM
Reply #1

MrKoops

  • *
  • Information
  • Novice reader
  • Posts: 5
Re: Lazylibrarian
« Reply #1 on: January 02, 2019, 08:50:02 PM »
that's easily coded.
I have a script which check the library for new books in a given language and downloads them automatically.
It would be easy to adjust to not only use the language tag  but also for searchterms.

January 19, 2019, 08:51:56 AM
Reply #2

badoer

  • *
  • Information
  • Novice reader
  • Posts: 2
Re: Lazylibrarian
« Reply #2 on: January 19, 2019, 08:51:56 AM »
Hi,

where can I find your script?
Just started learning python ... And I am afraid it will be a long way

January 19, 2019, 09:29:27 AM
Reply #3

Las Zenow

  • *****
  • Information
  • Fluent reader
  • Chief Librarian
  • Posts: 138
  • You just leave it to the Library.
    • Imperial Library of Trantor
Re: Lazylibrarian
« Reply #3 on: January 19, 2019, 09:29:27 AM »
The library produces both rss and json outputs of any search, you can use that to easily do a script to download books.

For example this is the rss of the 'lang:nl' search:
https://xfmro77i3lixucja.onion.to/search/?q=lang%3Anl&fmt=rss
And this is the json:
https://xfmro77i3lixucja.onion.to/search/?q=lang%3Anl&fmt=json

You can use jq (you'll find it in most linux distros) that way:
Code: [Select]
curl 'https://xfmro77i3lixucja.onion.to/search/?q=lang%3Anl&fmt=json' | jq -r '.books[].download' | while read url
do
    wget "https://xfmro77i3lixucja.onion.to/$url"
done
« Last Edit: January 19, 2019, 09:36:43 AM by Las Zenow »
Happy reading!!!