-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
65 lines (54 loc) · 2 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cian = '\033[1;36m'
white = '\033[1;37m'
purple = '\033[1;35m'
import requests, os
from sys import argv, executable, path
path.append(os.path.abspath("src"))
from searchIp import Ip
from searchCep import Cep
from searchCnpj import Cnpj
from searchPlaca import Placa
def restartCode():
input("Pressione ENTER para continuar")
os.execl(executable, executable, *argv)
def clear():
os.system('cls||clear')
def options():
print(f''' {white}━━━━━━━━❮◆❯━━━━━━━━━━{white}
{cian}MILIcian PIKA DE MEL{white}
{white} ━━━━━━━━❮◆❯━━━━━━━━━━{white}
CRIADO POR: {purple}SWAG,SPYWARE,DINIZ{white}
GITHUB: Swag666baby {cian}//{white} Spyware0 {cian}//{white} mrdiniz88
ESCOLHA UM NÚMERO:
{white}━❮{cian}1{white}❯━{cian} CONSULTA DE CEP
{white}━❮{cian}2{white}❯━{cian} CONSULTA DE IP
{white}━❮{cian}3{white}❯━{cian} CONSULTA DE CNPJ
{white}━❮{cian}4{white}❯━{cian} CONSULTA DE PLACA
{white}━❮{cian}5{white}❯━{cian} SAIR''')
choice = input(f' ➣➣➣ {white}')
if choice == '1':
try:
Cep(clear, requests, cian, white, restartCode)
except:
print("ERROR: cep invalido ou nao encontrado!")
elif choice == '2':
try:
Ip(clear, requests, cian, white, restartCode)
except:
print("ERROR: ip invalido ou nao encontrado!")
elif choice == '3':
try:
Cnpj(clear, requests, cian, white, restartCode)
except:
print("ERROR: cnpj invalido ou nao encontrado!")
elif choice == '4':
try:
Placa(clear, requests, cian, white, restartCode)
except:
print("ERROR: placa invalido ou nao encontrado!")
elif choice == '5':
print("programa encerrado.")
else:
os.execl(executable, executable, *argv)
clear()
options()