c-w / gutenberg

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

Error : MetadataExtractor registered for feature "language" #146

Open jlp95 opened 2 years ago

jlp95 commented 2 years ago

Hello, I install the gutenberg package with pip and with the functions "load_extexts" and "get_etexts", I can't download or read all texts for a specific language (for example english). Is there a solution for downloading and reading text for a language ? Thank you for your answer

c-w commented 2 years ago

I haven't worked on this project in years at this point, so I'm just going off of the tests and the code. This function looks like it should do what you need. list_supported_metadatas() should include language and then you should be able to do get_etexts('language', 'english') or similar.