AndyTheFactory / newspaper4k

📰 Newspaper4k a fork of the beloved Newspaper3k. Extraction of articles, titles, and metadata from news websites.
MIT License
475 stars 46 forks source link

Changing cache repository #241

Open AndyTheFactory opened 1 year ago

AndyTheFactory commented 1 year ago

Issue by ilkerceng Wed Sep 5 10:09:07 2018 Originally opened as https://github.com/codelucas/newspaper/issues/624


Hi, Is there any option to keep caches in any database repository instead of file directory?

AndyTheFactory commented 1 year ago

Comment by codelucas Wed Sep 5 16:06:04 2018


Not as of now, but that would be a good feature 👍 . For example if we had an option in configuration.py that allowed 'cache type' and 'cache location' and if it were a db or cache you could input your credentials in the config and the library would automatically attempt a write.

I guess for now you can suspend caching in the library itself and do it yourself until we have a better solution