Wikipedia

Explore Wikipedia API and how we can use it.

We'll cover the following...

Wikipedia is free crowd-sourced encyclopedia. It is constantly updated and has millions of articles.

Wikipedia also has a simple API that’s been wrapped for Python in the wikipedia package.

Getting started

Let’s install it and see how we might use it!

pip3 install wikipedia

The wikipedia package depends on BeautifulSoup and the requests package. Fortunately, it will install them or upgrade them itself if they are missing or out-of-date. ...