mirror of https://github.com/FanbeiFan/JD-SHOPPER
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
|
3 years ago | |
---|---|---|
.. | ||
1.北京.txt | 3 years ago | |
2.上海.txt | 3 years ago | |
3.天津.txt | 3 years ago | |
4.重庆.txt | 3 years ago | |
5.河北.txt | 3 years ago | |
6.山西.txt | 3 years ago | |
7.河南.txt | 3 years ago | |
8.辽宁.txt | 3 years ago | |
9.吉林.txt | 3 years ago | |
10.黑龙江.txt | 3 years ago | |
11.内蒙古.txt | 3 years ago | |
12.江苏.txt | 3 years ago | |
13.山东.txt | 3 years ago | |
14.安徽.txt | 3 years ago | |
15.浙江.txt | 3 years ago | |
16.福建.txt | 3 years ago | |
17.湖北.txt | 3 years ago | |
18.湖南.txt | 3 years ago | |
19.广东.txt | 3 years ago | |
20.广西.txt | 3 years ago | |
21.江西.txt | 3 years ago | |
22.四川.txt | 3 years ago | |
23.海南.txt | 3 years ago | |
24.贵州.txt | 3 years ago | |
25.云南.txt | 3 years ago | |
26.西藏.txt | 3 years ago | |
27.陕西.txt | 3 years ago | |
28.甘肃.txt | 3 years ago | |
29.青海.txt | 3 years ago | |
30.宁夏.txt | 3 years ago | |
31.新疆.txt | 3 years ago | |
32.台湾.txt | 3 years ago | |
84.钓鱼岛.txt | 3 years ago | |
52993.港澳.txt | 3 years ago | |
53283.海外.txt | 3 years ago | |
README.md | 3 years ago | |
get_area_id.py | 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