openzim / openedx

Open edX (to zim) scraper
GNU General Public License v3.0
8 stars 7 forks source link

Incorrect display of tick boxes on #84

Closed Popolechien closed 4 years ago

Popolechien commented 4 years ago

In the Topic 1 - Unit 1 - Self-evaluation section, users are encouraged to tick boxes to evaluate their progress: Capture d’écran 2020-07-20 à 11 50 09

The ZIM rendering is entirely different (related to #71 maybe) Capture d’écran 2020-07-20 à 11 50 14

satyamtg commented 4 years ago

Unlike the LMS view, the xblock URLs for self evaluations are generic xblocks with no added CSS. So, if we want the CSS, we would need to scrape the LMS views, which would be quite different for different instances as compared to xblocks individually (which are quite similar across instances). Here's a xblock URL that you can see - https://mooc.phzh.ch/xblock/block-v1:PHZH+W-IB+2019_E+type@vertical+block@e516e0c129184e019b24710eb7ddc703 . The LMS URL for the same is https://mooc.phzh.ch/courses/course-v1:PHZH+W-IB+2019_E/jump_to/block-v1:PHZH+W-IB+2019_E+type@vertical+block@e516e0c129184e019b24710eb7ddc703 (must be enrolled to see these links).

If we try to have styling for this, by scraping the LMS web view, we would probably need to change the behaviour of the scraper and implement code for different instances to be scraped differently. @Popolechien @rgaudin @kelson42 @dattaz what do you suggest?

Popolechien commented 4 years ago

Currently time is of the essence so I'd favour leaving it as it is, but out of curiosity would you be able to estimate how much work would be needed to implemented scraping of LMS view?

Alternatively, I see a lot of tickets are related to grabbing the CSS (or not). Should we do a bit of code to grab it, wouldn't it solve many other tickets, and would that code be reusable with other MOOCs?