Welcome Guest ( Log In | Register )

7 Pages  1 2 3 > » Bottom

Outline · [ Standard ] · Linear+

 Lai lai.....calculate your total spent on shopee, via script

views
     
TStaiko8148
post Oct 8 2021, 01:37 PM, updated 5y ago

Getting Started
**
Junior Member
179 posts

Joined: Apr 2010
https://soyacincau.com/2021/10/08/shopee-ho...nline-shopping/

Ever wondered how much money you’ve spent online? If you’ve been active during the major online sales like 9.9 and 11.11 on Shopee, you might be surprised to find out how much you’ve spent throughout the years.

Ahmad Saiful Bahri (epool86) has created a nifty script called calculateShopee that can automatically calculate your total amount of completed transactions on your Shopee account. All you’ll need is a desktop web browser and some copy and pasting work from GitHub which can be done in a few minutes.



How to calculate total spend on Shopee?
1. Copy the calculateShopee script
Go to this calculate.js page and copy (CTRL+C) the full script. You can click on the “Copy” icon as shown below to copy.


2. Login to Shopee
Login to your Shopee account’s purchase page and make sure you’re in the “All” tab.




3. Paste the script
Next, right-click anywhere on the page and select “Inspect”. This feature should be available by default for Microsoft Edge or Chrome browsers.


You should see a side panel on the right that displays a bunch of codes. Go to the console tab as shown below.


On the console tab, proceed to paste (CTRL+V) the code and hit enter.


Safari users


If you’re using Safari browser but can’t find the inspect element when you right-click on the page, not to worry. It might have not been enabled and you can go to Safari’s Preferences > Advanced menu, then tick on “Show Develop menu in menu bar”.

4. The grand total is….

After running the script, it will display the grand total amount in the final line as shown above. The script basically loads up all your Shopee transactions and total up all the completed transactions in your account. Transactions marked as “To Ship” and “To Receive” are not counted. At the moment there’s no Lazada version yet and this is probably due to the way Lazada uses pagination when displaying all orders.

So were you surprised with how much you’ve spent on Shopee? Is it more or less than your expectation? Let us know in the comments below.
SUSbananajoe
post Oct 8 2021, 01:38 PM

PhotoPhag
****
Junior Member
661 posts

Joined: Jul 2008
From: BananaLand



Why ? Run an untrusted jscript to harvest your data ? Nothanks.

user posted image

Btw what is this var getting from ?

This post has been edited by bananajoe: Oct 8 2021, 01:40 PM
PJng
post Oct 8 2021, 01:39 PM

10k Club
********
All Stars
12,039 posts

Joined: Oct 2017


No shipee, cannot test
FusionXY
post Oct 8 2021, 01:40 PM

LAZZIE ON VACATION
*******
Senior Member
3,834 posts

Joined: Aug 2016

QUOTE(PJng @ Oct 8 2021, 01:39 PM)
No shipee, cannot test
*
Got use Laz?
PJng
post Oct 8 2021, 01:41 PM

10k Club
********
All Stars
12,039 posts

Joined: Oct 2017


QUOTE(FusionXY @ Oct 8 2021, 01:40 PM)
Got use Laz?
*
Got, but bery bery light purchase
FusionXY
post Oct 8 2021, 01:42 PM

LAZZIE ON VACATION
*******
Senior Member
3,834 posts

Joined: Aug 2016

QUOTE(PJng @ Oct 8 2021, 01:41 PM)
Got, but bery bery light purchase
*
I use both.
Groceries from Shopee.
Electronics from Lazada.
afie98120
post Oct 8 2021, 01:46 PM

Getting Started
**
Junior Member
275 posts

Joined: Nov 2012
From: Yeyea Dah 2 star yeyea


Calculation completed! VM186:23
GRAND TOTAL: RM 120076.36 shocking.gif
shinichi88
post Oct 8 2021, 01:46 PM

Holy Crusader
*****
Senior Member
983 posts

Joined: Sep 2005
From: Selangor
QUOTE(bananajoe @ Oct 8 2021, 01:38 PM)
Why ? Run an untrusted jscript to harvest your data ? Nothanks.

user posted image

Btw what is this var getting from ?
*
if u read the script,
it does not send out any data to third party,
purely grab data from shopee using API, and do the calculation.
FusionXY
post Oct 8 2021, 01:47 PM

LAZZIE ON VACATION
*******
Senior Member
3,834 posts

Joined: Aug 2016

QUOTE(afie98120 @ Oct 8 2021, 01:46 PM)
Calculation completed! VM186:23
GRAND TOTAL: RM 120076.36  shocking.gif
*
Banyaknya.
imnotabot
post Oct 8 2021, 01:48 PM

On my way
****
Junior Member
531 posts

Joined: Oct 2016


QUOTE(bananajoe @ Oct 8 2021, 01:38 PM)
Why ? Run an untrusted jscript to harvest your data ? Nothanks.

user posted image

Btw what is this var getting from ?
*
It's just 27 lines of code that prints what you already see in the webpage into your console. It's safe to run.
But it's good advice in general, please don't simply run random script you find on the internet.
SUSbananajoe
post Oct 8 2021, 01:48 PM

PhotoPhag
****
Junior Member
661 posts

Joined: Jul 2008
From: BananaLand



QUOTE(shinichi88 @ Oct 8 2021, 01:46 PM)
if u read the script,
it does not send out any data to third party,
purely grab data from shopee using API, and do the calculation.
*
Wow, I thought API should be restricted. Why is this open ? lol
shinichi88
post Oct 8 2021, 01:48 PM

Holy Crusader
*****
Senior Member
983 posts

Joined: Sep 2005
From: Selangor
GRAND TOTAL: RM 13618.19
SUSbananajoe
post Oct 8 2021, 01:49 PM

PhotoPhag
****
Junior Member
661 posts

Joined: Jul 2008
From: BananaLand



QUOTE(imnotabot @ Oct 8 2021, 01:48 PM)
It's just 27 lines of code that prints what you already see in the webpage into your console. It's safe to run.
But it's good advice in general, please don't simply run random script you find on the internet.
*
I am just being extra careful. Thanks to all the stupid pop ups from win95 days lol.

Still feeling traumatic
DValentine
post Oct 8 2021, 01:49 PM

Enthusiast
*****
Junior Member
773 posts

Joined: Dec 2010
From: isudahinsap.flac


QUOTE(PJng @ Oct 8 2021, 01:39 PM)
No shipee, cannot test
*
no shipee no fb use samseng

kek
shinichi88
post Oct 8 2021, 01:50 PM

Holy Crusader
*****
Senior Member
983 posts

Joined: Sep 2005
From: Selangor
QUOTE(bananajoe @ Oct 8 2021, 01:48 PM)
Wow, I thought API should be restricted. Why is this open ? lol
*
LOL.. that's because you already login your OWN acc.
the API can only be use when you login.

This post has been edited by shinichi88: Oct 8 2021, 01:50 PM
Error404
post Oct 8 2021, 01:51 PM

Getting Started
**
Junior Member
236 posts

Joined: Mar 2009
From: Heilongjiang Province, China
GRAND TOTAL: RM 17536.17
SUSbananajoe
post Oct 8 2021, 01:51 PM

PhotoPhag
****
Junior Member
661 posts

Joined: Jul 2008
From: BananaLand



QUOTE(shinichi88 @ Oct 8 2021, 01:50 PM)
LOL.. that's because you already login your OWN acc.
the API can only be use when you login.
*
Yup, but even you logged in, should it be designed in such a way that no random script can read it ? Imagine some sending u free chrome plugin that design to read and harvest personal data from your account ?

I am not a programmer, just a concern thought. Maybe i can be wrong also.

This post has been edited by bananajoe: Oct 8 2021, 01:52 PM
zemega
post Oct 8 2021, 01:52 PM

Enthusiast
*****
Junior Member
723 posts

Joined: Jul 2008
How to save to direct the output to save to text file?
maxpudding
post Oct 8 2021, 01:56 PM

Getting Started
**
Junior Member
162 posts

Joined: Mar 2007
50k je

Please do for amazon also hehehehe
maxpudding
post Oct 8 2021, 01:56 PM

Getting Started
**
Junior Member
162 posts

Joined: Mar 2007
QUOTE(zemega @ Oct 8 2021, 01:52 PM)
How to save to direct the output to save to text file?
*
They have .csv direct output version also

7 Pages  1 2 3 > » Top
 

Change to:
| Lo-Fi Version
0.0164sec    0.54    5 queries    GZIP Disabled
Time is now: 5th December 2025 - 07:57 PM