openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
18 stars 16 forks source link

Add support for handling description and long_description #110

Closed benoit74 closed 10 months ago

benoit74 commented 10 months ago

The following logic could be shared among Python scrapers for handling description and long_description length and the distinction between user-provided and default values:

Code is almost already ready in kolibri

rgaudin commented 10 months ago

Where would this land in the API?

benoit74 commented 10 months ago

In a function named compute_descriptions in src/zimscraperlib/inputs.py?

rgaudin commented 10 months ago

👍