Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

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

@nikosRp

Description

@nikosRp

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions