c-w / gutenberg

A simple interface to the Project Gutenberg corpus.
Apache License 2.0
320 stars 60 forks source link

strip_headers(load_etext(id)).strip() not working #148

Open nikosRp opened 2 years ago

nikosRp commented 2 years ago

Hello!

I am trying to use the gutenberg package but there are issues: I use the code which is demonstrated in github but I get the following message:

raise ValueError('download URI for {} not supported'.format(etextno))
ValueError: download URI for 2701 not supported.

A couple of months ago this worked fine(used to test with book id 2542). Also if i try book 254 the

text = strip_headers(load_etext(id)).strip()
print(text)

works fine

but the following functions:

print(get_metadata('title', 254))

and

print(get_etexts('title', 'Moby Dick; Or, The Whale'))

show this:

raise PluginException("No plugin registered for (%s, %s)" % (name, kind))
rdflib.plugin.PluginException: No plugin registered for (Sleepycat, <class 'rdflib.store.Store'>).

Is there any solution/workaround?

Thank you in advance for your time!

c-w commented 2 years ago

To be honest, I haven't done anything on this repo in years so I don't know off the top of my head. @hugovk @sethwoodworth @MasterOdin any ideas?

hugovk commented 2 years ago

Same, and I used to use this with Windows but I'm now using Mac.