Eat Club Analytics
- log in and browse: https://www.eatclub.com/orders/past
- scroll to the bottom of the page and keep clicking more until your entire history is shown on the page.
- open chrome web console (or comparable)
- open javascript console
- run the following command
copy(Array.prototype.slice.call(document.querySelectorAll("div.item-cont.row")).map((r)=>{ return Array.prototype.slice.call(r.querySelectorAll("div.column")).map((c)=>{ return c.innerText.split("\n") }) }).map((o)=>{ return {date: o[0][0], location: o[0][1], dish: o[1][0], type: o[2][0]} }))
- open a new empty document in a text editor
- paste your clipboard
- save and exit
- open terminal and run the following command
cat eat-club-history.json| jq '.[].dish' | awk '{ FS="\n" count[$1]++}END{for(j in count) print j","count[j]}' | sort -t "," -k2 -nr | head -n 10
example output
Dish | Count |
---|---|
Butter Chicken | 18 |
Chicken Burrito | 15 |
Mie Tek Tek with Beef | 9 |
Chicken Caesar Salad | 9 |
Wet Burrito (Asada) | 6 |
Shrimp 'Fra Diavolo' Spaghetti | 5 |
Pastor Burrito | 5 |
Godmother | 5 |
Free Range Fried Chicken Sandwich | 5 |
Chicken Tikka Masala | 5 |