Follow

I was frustrated that I couldn't sort the drinks on the website by 'price-per-ml' even though they handily have that attribute visable. So I wrote a quick scraper to download a product category and convert to CSV so I can filter/sort it myself.
It was eaiser than I expected as they store they whole page of product information as json in a data attribute on the body tag.
Cheap beers woo!
neil.mckillop.org/tesco_scrape

· · Web · 3 · 6 · 15

Geez, two misspelled words in 500 characters, I think I need a coffee.

@neil I thought that costing column was price per unit of alcohol at first which made me think you were really going for it.😃

@mykd @neil I'm proud of you neil! That's exactly the sort of thing that makes for a satisfying hour with an editor and a browser!
However, like mykd, I thought of a 'bang for buck' column too ;-)

@neil
That's nice! I'm currently writing a scraper for spirit prices, mostly whisky, as they are super expensive.

Sign in to participate in the conversation
Glasgow.social

A place for communities in and around Glasgow, Scotland.