openzim / mindtouch

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

Properly render `Glossary` pages of libretexts.org #53

Closed benoit74 closed 1 week ago

benoit74 commented 3 weeks ago

Glossary pages content is special and it looks it needs JS to be rendered.

While most glossary pages contains only sample content, there are few (I found at least one) with proper content:

ID: 28160 URL: https://geo.libretexts.org/Courses/Sierra_College/Physical_Geology_(Sierra_College_Edition)/zz%3A_Back_Matter/20%3A_Glossary

benoit74 commented 3 weeks ago

Edit: it relies on JS and CSS:

<script defer="true" type="text/javascript" src="https://cdn.libretexts.net/github/LibreTextsMain/Leo%20Jayachandran/Glossarizer/libretextsGlossarizer.js"></script><link rel="stylesheet" type="text/css" href="https://cdn.libretexts.net/github/LibreTextsMain/Leo%20Jayachandran/Glossarizer/libretextsGlossarizer.css" /><script>
benoit74 commented 2 weeks ago

Analyzing a bit https://cdn.libretexts.net/github/LibreTextsMain/Leo%20Jayachandran/Glossarizer/libretextsGlossarizer.js:

What I hence plan to do: