Promo Code Scraper with Beautiful Soup and Flask

Creating an app to view promo codes formatted nicely in a table with Python beautiful soup and Flask

Tian Jie
5 min readJul 29, 2021
Photo by Kai Pilger on Unsplash

With more people working from home and adapting to the new norm, food deliveries and online shopping are becoming more and more popular. To increase sales, many merchants are giving out promo codes when customer purchases meeting certain criteria. However, it is a bit tedious to search for promo codes every time, and some websites are hiding the code with some advertisements so that you have to click in to reveal the actual promo code. Moreover, there are always terms and conditions associated with promo codes, such as promotion valid time, minimum spend, and participating merchants, etc. Although all the information is available on the website, some lines are very easy to miss out due to small fonts or weird formats, etc.

Therefore, I came up with this idea to implement a handy tool to display the promo codes and the associated terms and conditions in a more readable format.

Web Scraping

To begin with, we need to find out how to obtain the data required. Instead of directly obtaining the data from official sites respectively, there are also websites updating the voucher promo codes…

--

--