barrust / mediawiki

MediaWiki API wrapper in python http://pymediawiki.readthedocs.io/en/latest/
MIT License
180 stars 29 forks source link

Cache the results of the BeutifulSoup() parsing of a wikipage #90

Closed ldorigo closed 3 years ago

barrust commented 3 years ago

I would like to take the pull requests one at a time since it looks like they overlap some.

I love the idea of caching the call to BeautifulSoup and I see that this PR handles those around the use of the section parsing but there are other uses. Can you add the same caching to each use?

barrust commented 3 years ago

in particular, hatnotes and logos both use the same soup object.