Skip to content

Instantly share code, notes, and snippets.

View DriLLFreAK100's full-sized avatar

Ng Charn Chuen DriLLFreAK100

View GitHub Profile
@DriLLFreAK100
DriLLFreAK100 / scrape.py
Created February 5, 2021 13:04
Python script to scrape Wikipedia's coffee producing countries 2019
import pandas as pd
import requests
from bs4 import BeautifulSoup
url = 'https://en.wikipedia.org/wiki/List_of_countries_by_coffee_production'
r = requests.get(url)
html = r.text
soup = BeautifulSoup(html)