finally done (!!!) after triumphing over my nemesis, CSS - took longer than expected, but here we are! ๐๐ผ ๐
check it out at https://t.co/ObhjzjJMZ3โจ
Starting off with Week 1 - the setup:
As a casual reseller, I often reference eBay to get a sense of how much something could be sold for, so I can decide whether I want to buy something to resell, or go through the effort of listing an item I already have.
we end Day 5 with data populated through to the page! definitely not the prettiest site, but we're going to save our CSS adventure for another day ๐
๐บ sorting an array of numbers with JS doesn't use the numerical values by default, but the string values (eg 11.5 comes before 9) ๐ท JS for loops are overly complicated - broken with for/of, but forEach worked (even though you can access the element directly in both cases)
a catalog of weird bugs encountered thus far:
๐บ $.children only searches through direct children, not nested children.
printed all the HTML, verified my selectors were correct, and then stared at my code for hours trying to figure out why those elements weren't being parsed
after a brief interlude this week, here's where we're at!
โ๏ธ the barest of bones frontend
โ๏ธ translated PoC parsing script in Python to JS
โ๏ธ Node backend now calling eBay and parsing results
on our docket for today:
โ connect our backend with our frontend
โ display results
Day 1 progress:
โ๏ธ Finished proof of concept script to scrape data off eBay result pages
(Would have used an API instead, but looks like eBay deprecated their API endpoint for this back in 2020.)
My very simple solution? An app that allows you to type in your item and get a quick sense of how much it's generally going for with a breakdown of the specific listings, ordered by price.
The UX is terrible - you need to open up the eBay app, type in your item, open up the filters, scroll down to check the Sold filter, and then refresh your results.
Even with the new results, you have to mentally process all those data points, which can range across the board.
Finally coming out of funemployment retirement to start a new six week app building challenge!
The plan: Build one app a week for the next six weeks. Let's go! ๐ช๐ผ