Skip to content

fix: Replace usage of `wikipedia` with bs4 and requests.

Isaac Johnson requested to merge isaac-remove-wikipedia-module into dev

Stripped out wikipedia library from the rest of the backend. This meant removing some functionality for the moment as it's not being used (summary) and some of the behavior changed substantially too. Namely, the BeautifulSoup service handles content very differently from WikipediaModule so we're back to the infobox being included and put at the top of the article. Images won't work as well probably because they're coming from the HTML as opposed to imageinfo API, but that functionality doesn't seem to be used either so I assume that's okay and maybe can just be taken out as well? Poetry setup still needs to be updated to remove wikipedia module.

Merge request reports