最新手机号段获取工具

最新的手机号码验证正则
[js]
mobile:"^13[0-9]{9}|15[012356789][0-9]{8}|18[0-9]{9}|14[579][0-9]{8}|17[0-9]{9}$",
[/js]

查询代码:
[scala]
(131 to 199).map{ k =>

var mobile = k + "01058520"
var url = "http://v.showji.com/Locating/showji.com20150108.aspx?m="+ mobile +"&output=json"
try {
var source = scala.io.Source.fromURL(url).mkString
var result = source.split("\"Corp\":\"")(1).split("\"")(0)

if(result.length){
println(k +":"+ result)
}

Thread sleep 3000
} catch {
case e: Exception => {println ("something error")}
}
}
[/scala]

result:
131:中国联通
132:中国联通
133:中国电信
134:中国移动
135:中国移动
136:中国移动
137:中国移动
138:中国移动
139:中国移动
140:
141:
142:
143:
144:
145:中国联通
146:
147:中国移动
148:
149:中国电信
150:中国移动
151:中国移动
152:中国移动
153:中国电信
154:
155:中国联通
156:中国联通
157:中国移动
158:中国移动
159:中国移动
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:中国电信
171:
172:
173:
174:
175:
176:中国联通
177:中国电信
178:中国移动
179:
180:中国电信
181:中国电信
182:中国移动
183:中国移动
184:中国移动
185:中国联通
186:中国联通
187:中国移动
188:中国移动
189:中国电信
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:

发表评论