Craftcans.com provides a database of 2692 crafted canned beers. The data on beers includes the following variables:
This is very popular, nice database used for various kinds of analytical tasks. The database can be obtained in three ways:
In [1]:
import pandas
In [2]:
url = "http://craftcans.com/db.php?search=all&sort=beerid&ord=desc&view=text"
In [3]:
scraped_data = pandas.read_html(url)
In [4]:
len(scraped_data)
Out[4]:
In [5]:
data = scraped_data[-1]
In [6]:
data.head()
Out[6]:
In [7]:
data.to_excel("craftcans.xlsx")