Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

sinchang/cn-starbucks-stores-data

Repository files navigation

CN STARBUCKS STORE DATA

Web Script

[].slice.call(document.querySelectorAll('.LocationFilterGroup button')).map(v => v.innerText)

// =>

["安徽", "北京", "重庆", "福建", "甘肃", "广东", "广西", "贵州", "海南", "河北", "黑龙江", "河南", "湖北", "湖南", "内蒙古", "江苏", "江西", "吉林", "辽宁", "宁夏", "青海", "陕西", "山东", "上海", "山西", "四川", "天津", "西藏", "新疆", "云南", "浙江"]

API

https://www.starbucks.com.cn/api/stores

Query Data

You can do that on https://cn-starbucks.vercel.app

LICENSE

MIT