9 hours ago · Tech · 0 comments

Over the past month or so I've sold a bunch of stuff on Vinted and I wanted to know how much I've made but Vinted don't give you that data, at least not in a nice way. They have monthly reports but that shows what you started with and ended with which only works if you don't withdraw or spend anything, which I had. So I went to the sold page, scrolled the infinite scroll list until it had loaded the months worth of stuff and whipped up this snippet to take the price and title of the item and add it to the clipboard. list = document.getElementsByClassName('my-orders-content')[0]items = Array.from(list.querySelectorAll('a .web_ui__Cell__content'))data = items.map(i => { price = i.getElementsByClassName('web_ui__Text__text')[0].innerText title = i.getElementsByClassName('web_ui__Cell__title')[0].innerText return `${price} // ${title}`}).join('\n')copy(data) The output will look something like this which I can then paste into Numi or Soulver to give me a total. Bundles don't have a useful…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.