ll104567 / profaker

python生成随机字符、中英文用户名、手机号、身份证等

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#profake
python生成随机字符、中英文用户名、手机号、身份证等


test ok : python 3.7
Usage:
from fake_modules.fake_email import email
from fake_modules.fake_id import id
from fake_modules.fake_ip import ip
from fake_modules.fake_name import name
from fake_modules.fake_number import number
from fake_modules.fake_phone import phone

├── fake_modules
│   ├── fake_email.py
│   ├── fake_id.py
│   ├── fake_ip.py
│   ├── fake_name.py
│   ├── fake_number.py
│   ├── fake_phone.py
│   ├── __init__.py
│   └── utils
│   ├── __init__.py
│   └── tools.py
├── __init__.py
└── README.md

2 directories, 11 files
In [9]: from fake_modules.fake_email import email

In [10]: email()
Out[10]: '340845548@qq.com'

In [11]: email()
Out[11]: '889653208@qq.com'

In [12]: email()
Out[12]: '121947281@qq.com'

In [13]: email()
Out[13]: '411840113@qq.com'

In [14]: email()
Out[14]: '707213122@qq.com'

In [15]: email()
Out[15]: 'fzzklrbvc@yahoo.com.cn'

In [16]: email()
Out[16]: '539740494@qq.com'

In [17]: email(10)
Out[17]:
['jbqdaovgp@sina.com',
'lxvecf@sohu.com',
'okfvdnq@126.com',
'433728638@qq.com',
'315687424@qq.com',
'432175178@qq.com',
'750580241@qq.com',
'cgahsu@yahoo.com',
'smoipajwew@gmail.com',
'fedmraxkys@126.com']

In [1]: from fake_modules.fake_id import id


In [2]: id()
Out[2]: '518254196205188444'

In [3]: id()
Out[3]: '359715198008029965'

In [4]: id(10)
Out[4]:
['321806196312173694',
'325932199809153205',
'603350194809203068',
'721020194703228479',
'408540195807079171',
'479377198912048480',
'700271197004289416',
'983564196008140902',
'853839199308245145',
'178939195809109651']

In [5]: from fake_modules.fake_ip import ip


In [6]: ip()
Out[6]: '127.208.173.224'

In [7]: ip()
Out[7]: '239.119.177.244'

In [8]: ip()
Out[8]: '221.184.242.202'

In [9]: ip(10)
Out[9]:
['110.31.139.49',
'149.37.87.15',
'190.93.212.96',
'8.182.16.145',
'114.80.25.200',
'149.233.90.7',
'121.159.210.142',
'194.199.8.28',
'194.234.168.17',
'184.82.240.139']

In [1]: from fake_modules.fake_name import name


In [2]: name()
Out[2]: '范泰'

In [3]: name()
Out[3]: '邹斌'

In [4]: name(10)
Out[4]: ['于妍', '何盛', '廉发', '邬雅', '祁园', '马贵', '齐妹', '姚辰', '王悦', '贝荔']

About

python生成随机字符、中英文用户名、手机号、身份证等


Languages

Language:Python 99.6%Language:Shell 0.4%