Blog

Categories

Recent Posts: Python

Scrape a Book Shop with BeautifulSoup

Web Scraping is the automated process of extracting data from websites. This is commonly done by retrieving the HTML code of a website through a request and then extracting the information hidden in the HTML code programmatically. This is especially useful when there is no convenient API available to you! There has been a lot of discussion going on about the legality and ethics of Web Scraping, which I do not want to get into in this article. You can find a lot of information on this online.

[ > Read more ]

k-Means Clustering

The k-means algorithm is used to divide unlabeled data into categories or classes, in order to draw useful conclusions from the resulting clusters. Let’s take a look at an imaginary dataset of n = 18 observations of different coffee brands. Note that we would never actually use the k-means algorithm on such a small dataset. We plot the price of the coffee vs. the rating obtained by customers:

[ > Read more ]