Curly Tales

You Can Now Find How Much You’ve Spent On Your Swiggy Orders So Far

Swiggy

Picture Credits: Free Press Journal

Swiggy is one of the most popular food aggregators in India and we are sure you have also used this application at least once. Such platforms are a boon for us as we can order anything we like at any point in time and enjoy the deliciousness in the comfort of our houses. There is no need to get out and stuck in traffic to reach the restaurant. All we need to do is open the Swiggy application and place the order. And with this simple process, we often end up placing food orders quite often. Especially students and office go-ers living alone order so much using applications such as Swiggy and Zomato. And in this way, we end up spending a lot of money. But what if I tell you that you can now find out how much you have spent on this food aggregator so far?

You Can Now Track How Much You’ve Spent On Your Swiggy Orders As Yet

This might come as a surprising eye-opener, but you can easily get to know the total money spent on this ordering application so far. The steps to check it out are quite easy. All you need are a computer/laptop and a stable Internet connection. Tracking money is now convenient for everyone.

Also read: Inspiring Story Of Specially-Abled Swiggy Delivery Agent Will Melt Your Heart

How To Track The Money You Spent On This Application?

Also read: Tamil Lyricist Finds Chicken Pieces In Vegetarian Dish; Demands Apology From Swiggy Head

The code to check the spent money on Swiggy is:

amount_node_list = document.getElementsByClassName(‘_3Hghg’);

amount_regex = /\d+.\d*/g;

total_amount = 0

for (let i = 0; i

current_amount = amount_node_list[i].innerHTML;

if (current_amount.match(amount_regex)) {

integer_amount = parseInt(current_amount.match(amount_regex)[0])

total_amount += integer_amount;

}

} console.log(“Total amount spent on Swiggy so far is “, total_amount);