In this tutorial, we will learn how to create a Python program to web scraping tables from a Wikipedia page. This method will work for pretty much most of the tables you see on Wikipedia.
Before the tutorial, makes sure you have BeautifulSoup and requests libraries installed.
To install BeautifulSoup: pip install beautifulsoup4
To install requests: pip install requests
Buy Me a Coffee? Your support is much appreciated!
PayPal Me: https://www.paypal.me/jiejenn/5
Venmo: @Jie-Jenn
More tutorial videos on my website
https://LearnDataAnalysis.org
Considering support my channel through shopping on Amazon
https://amzn.to/2JkGeMD
Want to be more productive? Check out the the gear (Amazon affiliate links) I use when I am working.
Lenovo ThinkPad X1 Extreme 2nd Gen (4K): https://amzn.to/2QT1CNk
ASUS Designo Curve MX38VC 37.5" Monitor: https://amzn.to/39rFSOQ
Logitech MX Master 3 Advanced (My primary mouse): https://amzn.to/2WSumK2
Logitech MX Anywhere 2S (When traveling): https://amzn.to/2WTdKl5
Logitech Craft Advanced Wireless Keyboard: https://amzn.to/2QUjAz1
VAVA USB C Hub, 8-in-1 USB C Adapter : https://amzn.to/3dFim4g
Theralite Aura Bright Light Therapy Lamp: https://amzn.to/2UIp5lv