You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Louis Young f216c1ea30 <feat>(Waiter): Add requests method to get stock info 3 years ago
..
1.北京.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
2.上海.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
3.天津.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
4.重庆.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
5.河北.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
6.山西.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
7.河南.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
8.辽宁.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
9.吉林.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
10.黑龙江.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
11.内蒙古.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
12.江苏.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
13.山东.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
14.安徽.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
15.浙江.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
16.福建.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
17.湖北.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
18.湖南.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
19.广东.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
20.广西.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
21.江西.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
22.四川.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
23.海南.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
24.贵州.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
25.云南.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
26.西藏.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
27.陕西.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
28.甘肃.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
29.青海.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
30.宁夏.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
31.新疆.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
32.台湾.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
84.钓鱼岛.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
52993.港澳.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
53283.海外.txt <feat>(Waiter): Add requests method to get stock info 3 years ago
README.md <feat>(Waiter): Add requests method to get stock info 3 years ago
get_area_id.py <feat>(Waiter): Add requests method to get stock info 3 years ago

README.md

地址id如何获取?

方法一

在本文件夹中根据地址查询对应的文件。

方法二

在商品页面(例如 https://item.jd.com/1178879.html) 打开开发者工具,在 Console 中执行以下 Javascript 代码:

var el = document.getElementsByClassName("ui-area-text")[0]
var area_name = el.getAttribute("title")
var area_id = el.getAttribute("data-id").replace(/-/g, "_")
console.log(area_name)
console.log(area_id)

方法三

运行本文件夹中的 Python 脚本,根据提示逐级选择区域。感谢 @6r6 提供脚本~

python get_area_id.py