top of page
Search

Getting Swatches using Python

  • Writer: Nadine Mukondiwa
    Nadine Mukondiwa
  • Mar 21, 2021
  • 2 min read

Over the last few months, I have been learning how to program in Python using platforms like edX, Coursera, YouTube, Datacamp and freeCodeCamp. However, at the end of October, I started seriously focusing on learning Python, and I have really been enjoying the learning journey.


I tried to find different ways to apply the things I had been learning, so I started a web scraping project. I have a list of different websites I wanted to use for my web scraping projects, but I started with web scraping on the Swatch Canada website because I wanted to see how much a small subset of the Swatch watches would cost.


The Jupyter Notebook for this project is available on my GitHub page. I used BeautifulSoup and the requests libraries for web scraping and obtained information about 64 different watches. I then used the pandas for data cleaning and data manipulation and Matplotlib for data visualization.



What were the prices?



From the chart above, we can see that most watches cost between $80 and $120.

The average, minimum and maximum prices of the watches were $132.81, $85.0 and $285.0.






The Fairy Cherry, Fairy Frosty, Fairy Candy and Luxy Barok cost $85, which was the lowest price. The Rednel watch cost $90. The more expensive watches cost above $200, with the Crazy Drive watch being the most expensive at $285.


Colours





I like black watches because I think they are easy to pair with any colour, so it was nice to see that many of the watches in this selection were black. Although I did not have the type of data to do the analysis, I would be interested in analyzing if the colour significantly influences sales.



Functions



Most of the watches were water-resistant. However, many of the watches did not have any information about the functions. However, most Swatch watches have some water-resistance, but I decided to show the information on the website.


Although this project was small, I really enjoyed working on it because I could move away from the "tutorial hell" and actually create something myself.

 
 
 

Recent Posts

See All
Combining books with Python and SQL

The COVID-19 pandemic led to new hobbies or going back to old hobbies for many people. I reignited my interest in reading (thanks to the...

 
 
 

Comments


bottom of page