!!! For M1/M2 apple silicon see this comment:
For MacOS | Mojave | High Sierra
| """ | |
| This is my understanding of the Anki scheduling algorithm, which I mostly | |
| got from watching https://www.youtube.com/watch?v=lz60qTP2Gx0 | |
| and https://www.youtube.com/watch?v=1XaJjbCSXT0 | |
| and from reading | |
| https://faqs.ankiweb.net/what-spaced-repetition-algorithm.html | |
| There is also https://github.com/dae/anki/blob/master/anki/sched.py but I find | |
| it really hard to understand. | |
| Things I don't bother to implement here: the random fudge factor (that Anki |
!!! For M1/M2 apple silicon see this comment:
For MacOS | Mojave | High Sierra
| from BeautifulSoup import BeautifulSoup | |
| def _remove_attrs(soup): | |
| for tag in soup.findAll(True): | |
| tag.attrs = None | |
| return soup | |
| def example(): | |
| doc = '<html><head><title>test</title></head><body id="foo" onload="whatever"><p class="whatever">junk</p><div style="background: yellow;" id="foo" class="blah">blah</div></body></html>' |