openzim / mindtouch

libretexts.org to ZIM scraper
GNU General Public License v3.0
0 stars 0 forks source link

Move to content rewriting code from zimscraperlib #33

Open benoit74 opened 4 days ago

benoit74 commented 4 days ago

Code to rewrite CSS, JS and HTML has been moved from warc2zim to zimscraperlib by https://github.com/openzim/python-scraperlib/pull/204

This PR adapts the scraper to use CSS rewriter from zimscraperlib (formerly warc2zim) and mutualize CSS handling code to avoid repetitions.

codecov[bot] commented 4 days ago

Codecov Report

Attention: Patch coverage is 13.04348% with 20 lines in your changes missing coverage. Please review.

Project coverage is 45.69%. Comparing base (797edd3) to head (7c0ad2a).

Files with missing lines Patch % Lines
scraper/src/libretexts2zim/processor.py 13.04% 20 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #33 +/- ## ========================================== - Coverage 50.72% 45.69% -5.04% ========================================== Files 9 8 -1 Lines 554 499 -55 Branches 63 53 -10 ========================================== - Hits 281 228 -53 Misses 269 269 + Partials 4 2 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.