Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-24-2025, 08:33 PM   #1
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
[Metadata Source Plugin] StoryGraph

Scrapes metadata and covers from https://thestorygraph.com/. Metadata include:
  • title
  • authors
  • tags (genre, mood, and pace)
  • publication information
  • rich-text description
  • rating
  • series
  • ISBN
  • language

It also adds a StoryGraph GUID identifier and uses it to conduct searches.

Of note to me are the tags - this website is a great resource for crowdsourced mood and pace information (in fact, the only one I've found).

There is other potential information that could be fetched, such as page counts and content warnings, but I've limited this implementation to only the major information the StoryGraph itself puts in the book info header. If there is demand for the other info, though, let me know and I'll see about scraping and adding it.

Note that edition publication information from the StoryGraph is not the most reliable; to that end, I've provided a configuration option to use the first release year of the book, instead. This is only the year, though.
Attached Files
File Type: zip storygraph-metadata-1.0.1.zip (6.6 KB, 266 views)

Last edited by BetterRed; 08-31-2025 at 09:36 PM. Reason: Replace attachment
ARR8 is offline   Reply With Quote
Old 08-25-2025, 05:31 AM   #2
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 862
Karma: 11659320
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Sage, Kobo Libra 2, Boox Note Air 2+
This plugin probably violates term 2 of their ToS:
https://app.thestorygraph.com/terms-of-service

Quote:
2. Use License
1. Permission is granted to temporarily download one copy of the materials (information or software) on The StoryGraph's website for personal, non-commercial transitory viewing only. This is the grant of a license, not a transfer of title, and under this license you may not:

1. modify or copy the materials;

2. use the materials for any commercial purpose, or for any public display (commercial or non-commercial);

3. attempt to decompile or reverse engineer any software contained on The StoryGraph's website;

4. remove any copyright or other proprietary notations from the materials; or

5. transfer the materials to another person or "mirror" the materials on any other server.
rantanplan is offline   Reply With Quote
Old 08-25-2025, 10:52 AM   #3
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
That's a fair point. By my read, use in one's personal Calibre library wouldn't fall under public display, but I'll ask them. I'll update with their response once I receive it.
ARR8 is offline   Reply With Quote
Old 08-27-2025, 05:28 PM   #4
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
They state that they provide no official comment besides the terms themselves, but hope to formulate a clearer policy at some point in the future.
ARR8 is offline   Reply With Quote
Old 08-30-2025, 08:09 AM   #5
dewd
Connoisseur
dewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfoldeddewd reads XML... blindfolded
 
Posts: 54
Karma: 52704
Join Date: Nov 2017
Device: Kobo Libra Colour, Kindle Voyage(s)
I'm interested in this plugin but it's failing to find any books. I've pasted the relevant bits of the error log below:

Plugin StoryGraph failed
Traceback (most recent call last):
File "lxml/cssselect.py", line 12, in <module>
ModuleNotFoundError: No module named 'cssselect'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre/ebooks/metadata/sources/identify.py", line 47, in run
File "calibre_plugins.dummy1.__init__", line 342, in identify
books = root.cssselect(".book-pane")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src/lxml/etree.pyx", line 1613, in lxml.etree._Element.cssselect
File "bypy-importer.py", line 279, in exec_module
File "lxml/cssselect.py", line 14, in <module>
ImportError: cssselect does not seem to be installed. See https://pypi.org/project/cssselect/
dewd is offline   Reply With Quote
Old 08-30-2025, 08:19 PM   #6
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
Hmm, that module is definitely included in my version of Calibre. What version are you using? And on what OS?
ARR8 is offline   Reply With Quote
Old 08-30-2025, 11:24 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,096
Karma: 148565303
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by ARR8 View Post
Hmm, that module is definitely included in my version of Calibre. What version are you using? And on what OS?
What you need to do is put in the first pot of this thresd what the minimum version of calibre your plugin will run.
JSWolf is offline   Reply With Quote
Old 08-31-2025, 07:38 AM   #8
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,242
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ARR8 View Post
Hmm, that module is definitely included in my version of Calibre. What version are you using? And on what OS?
You are probably on linux, right? Maybe using a distro version of calibre? Those versions can differ from official calibre and have other libs added. I have the latest calibre (8.9) installed on my Windows 11 machine and the module is not included either.
thiago.eec is offline   Reply With Quote
Old 08-31-2025, 08:47 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,466
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you want to use CSS based selectors with lxml trees in calibre use css_selectors, like this

Code:
from css_selectors import Select
select = Select(root)

for a in select('your css selector'):
   ...
kovidgoyal is offline   Reply With Quote
Old 08-31-2025, 04:36 PM   #10
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
Thanks both. Uploading an updated version to use the internal library.
ARR8 is offline   Reply With Quote
Old 08-31-2025, 04:57 PM   #11
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
Frustratingly, I apparently cannot edit my top post because of restrictions on new accounts. I've sent a message to whoever runs this website but I guess I have to wait in the meantime. It's also silently dropping my new posts.

I don't suppose there are any other distribution channels for plugins using the built-in installer?
ARR8 is offline   Reply With Quote
Old 08-31-2025, 04:58 PM   #12
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
Apparently my account is too new to edit posts.
ARR8 is offline   Reply With Quote
Old 08-31-2025, 05:24 PM   #13
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
And what I thought was messages being silently dropped is actually them being held back and posted in batches. Sorry to all subscribed.
ARR8 is offline   Reply With Quote
Old 08-31-2025, 05:41 PM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,843
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ARR8 View Post
Frustratingly, I apparently cannot edit my top post because of restrictions on new accounts. I've sent a message to whoever runs this website but I guess I have to wait in the meantime. It's also silently dropping my new posts.

I don't suppose there are any other distribution channels for plugins using the built-in installer?
Moderator Notice
To edit your own posts you need to get your post count up to 10 or more, post some replies in some of the threads in the Lounge.

Your string of duplicate posts went into moderation, I deleted them except the one I've quoted.

And this is the only place the calibre plugin updater knows about, and it only knows about plugins that are listed in the Index of plugins.

BR
BetterRed is offline   Reply With Quote
Old 08-31-2025, 05:49 PM   #15
ARR8
Member
ARR8 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2025
Device: PocketBook Verse Pro
Understood, thanks for the explanation.
ARR8 is offline   Reply With Quote
Reply

Tags
calibre, metadata, mood, pace, storygraph


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] Kobo Metadata NotSimone Plugins 181 08-15-2025 11:44 PM
[Metadata Source Plugin] Show multiple results for single source? memory_dump Plugins 6 06-03-2025 01:03 AM
How do I know which Metadata Source Plugin was called from fetch-ebook-metadata? eryMpexI Library Management 6 04-22-2023 08:58 AM
Read a book's metadata in a Metadata source plugin? J-H Development 2 03-30-2021 09:08 AM
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) mneimeyer Plugins 3 11-11-2019 08:07 PM


All times are GMT -4. The time now is 06:20 AM.


MobileRead.com is a privately owned, operated and funded community.