sociallinker 2.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
sociallinker/__init__.py
ADDED
|
File without changes
|
sociallinker/cli.py
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
VERSION = "2.6"
|
|
6
|
+
|
|
7
|
+
# --- FUNÇÕES DE UTILIDADE ---
|
|
8
|
+
|
|
9
|
+
def limpar_numero(texto):
|
|
10
|
+
return "".join(filter(str.isdigit, texto))
|
|
11
|
+
|
|
12
|
+
def limpar_usuario(texto):
|
|
13
|
+
return texto.replace("@", "").strip()
|
|
14
|
+
|
|
15
|
+
def codificar_texto(texto):
|
|
16
|
+
return quote(texto)
|
|
17
|
+
|
|
18
|
+
def limpar_tela():
|
|
19
|
+
os.system("cls" if os.name == "nt" else "clear")
|
|
20
|
+
|
|
21
|
+
# --- MOTORES DE GERAÇÃO ---
|
|
22
|
+
|
|
23
|
+
def gerar_whatsapp():
|
|
24
|
+
print("\n--- GERADOR DE LINK WHATSAPP ---")
|
|
25
|
+
ddi = limpar_numero(input("DDI (ex: 55): "))
|
|
26
|
+
ddd = limpar_numero(input("DDD (ex: 51): "))
|
|
27
|
+
num = limpar_numero(input("Número: "))
|
|
28
|
+
text = codificar_texto(input("Mensagem: "))
|
|
29
|
+
link = f"https://wa.me/{ddi}{ddd}{num}?text={text}"
|
|
30
|
+
mostrar_resultado(link)
|
|
31
|
+
|
|
32
|
+
def gerar_telegram():
|
|
33
|
+
print("\n--- GERADOR DE LINK TELEGRAM ---")
|
|
34
|
+
usuario = limpar_usuario(input("Digite o @usuario: "))
|
|
35
|
+
link = f"https://t.me/{usuario}"
|
|
36
|
+
mostrar_resultado(link)
|
|
37
|
+
|
|
38
|
+
def gerar_instagram():
|
|
39
|
+
print("\n--- GERADOR DE DIRECT INSTAGRAM ---")
|
|
40
|
+
usuario = limpar_usuario(input("Digite o @usuario: "))
|
|
41
|
+
link = f"https://ig.me/m/{usuario}"
|
|
42
|
+
mostrar_resultado(link)
|
|
43
|
+
|
|
44
|
+
def gerar_messenger():
|
|
45
|
+
print("\n--- GERADOR DE LINK MESSENGER ---")
|
|
46
|
+
entrada = input("Nome de usuário ou link: ")
|
|
47
|
+
usuario = entrada.split("/")[-1]
|
|
48
|
+
link = f"https://m.me/{usuario}"
|
|
49
|
+
mostrar_resultado(link)
|
|
50
|
+
|
|
51
|
+
def gerar_sms():
|
|
52
|
+
print("\n--- GERADOR DE SMS UNIVERSAL ---")
|
|
53
|
+
num = limpar_numero(input("Número com DDD: "))
|
|
54
|
+
msg = codificar_texto(input("Mensagem: "))
|
|
55
|
+
link = f"sms:{num}?body={msg}"
|
|
56
|
+
mostrar_resultado(link)
|
|
57
|
+
|
|
58
|
+
def gerar_linkedin():
|
|
59
|
+
print("\n--- GERADOR DE LINK LINKEDIN ---")
|
|
60
|
+
usuario = limpar_usuario(input("Digite o nome de usuário do perfil: "))
|
|
61
|
+
link = f"https://www.linkedin.com/in/{usuario}"
|
|
62
|
+
mostrar_resultado(link)
|
|
63
|
+
|
|
64
|
+
def gerar_twitter():
|
|
65
|
+
print("\n--- GERADOR DE LINK X (TWITTER) ---")
|
|
66
|
+
usuario = limpar_usuario(input("Digite o @usuario: "))
|
|
67
|
+
msg = codificar_texto(input("Mensagem (opcional): "))
|
|
68
|
+
if msg:
|
|
69
|
+
link = f"https://twitter.com/intent/tweet?text=@{usuario}%20{msg}"
|
|
70
|
+
else:
|
|
71
|
+
link = f"https://twitter.com/{usuario}"
|
|
72
|
+
mostrar_resultado(link)
|
|
73
|
+
|
|
74
|
+
def gerar_signal():
|
|
75
|
+
print("\n--- GERADOR DE LINK SIGNAL ---")
|
|
76
|
+
num = limpar_numero(input("Número (DDI+DDD+Número): "))
|
|
77
|
+
link = f"https://signal.me/#p/{num}"
|
|
78
|
+
mostrar_resultado(link)
|
|
79
|
+
|
|
80
|
+
def gerar_youtube():
|
|
81
|
+
print("\n--- GERADOR DE LINK INSCRIÇÃO YOUTUBE ---")
|
|
82
|
+
print("Dica: Use o nome do canal ou o ID que aparece na URL")
|
|
83
|
+
canal = input("ID/Nome do Canal: ")
|
|
84
|
+
link = f"https://www.youtube.com/{canal}?sub_confirmation=1"
|
|
85
|
+
mostrar_resultado(link)
|
|
86
|
+
|
|
87
|
+
def gerar_tiktok():
|
|
88
|
+
print("\n--- GERADOR DE LINK TIKTOK ---")
|
|
89
|
+
usuario = limpar_usuario(input("Digite o @usuario: "))
|
|
90
|
+
link = f"https://www.tiktok.com/@{usuario}"
|
|
91
|
+
mostrar_resultado(link)
|
|
92
|
+
|
|
93
|
+
def gerar_pinterest():
|
|
94
|
+
print("\n--- GERADOR DE LINK PINTEREST ---")
|
|
95
|
+
usuario = limpar_usuario(input("Digite o nome de usuário: "))
|
|
96
|
+
link = f"https://www.pinterest.com/{usuario}/"
|
|
97
|
+
mostrar_resultado(link)
|
|
98
|
+
|
|
99
|
+
def gerar_skype():
|
|
100
|
+
print("\n--- GERADOR DE LINK SKYPE ---")
|
|
101
|
+
usuario = input("Digite o nome de usuário/ID Skype: ")
|
|
102
|
+
link = f"skype:{usuario}?chat"
|
|
103
|
+
mostrar_resultado(link)
|
|
104
|
+
|
|
105
|
+
# --- FUNÇÃO AUXILIAR ---
|
|
106
|
+
|
|
107
|
+
def mostrar_resultado(link):
|
|
108
|
+
print("\n\033[1;32m" + "=" * 45)
|
|
109
|
+
print("LINK GERADO COM SUCESSO:")
|
|
110
|
+
print(link)
|
|
111
|
+
print("=" * 45 + "\033[0m")
|
|
112
|
+
input("\nPressione ENTER para voltar ao SocialLinker...")
|
|
113
|
+
|
|
114
|
+
# --- MENU ---
|
|
115
|
+
|
|
116
|
+
def menu():
|
|
117
|
+
while True:
|
|
118
|
+
limpar_tela()
|
|
119
|
+
print("\033[1;34m" + "=" * 45)
|
|
120
|
+
print(f" SOCIALLINKER CLI v{VERSION}")
|
|
121
|
+
print("=" * 45 + "\033[0m")
|
|
122
|
+
print("( 1 ) WhatsApp ( 7 ) X (Twitter)")
|
|
123
|
+
print("( 2 ) Telegram ( 8 ) Signal")
|
|
124
|
+
print("( 3 ) Instagram Direct ( 9 ) YouTube (Inscrição)")
|
|
125
|
+
print("( 4 ) Facebook Mess. ( 10) TikTok")
|
|
126
|
+
print("( 5 ) SMS Universal ( 11) Pinterest")
|
|
127
|
+
print("( 6 ) LinkedIn ( 12) Skype")
|
|
128
|
+
print("\033[1;31m( 0 ) Sair\033[0m")
|
|
129
|
+
print("=" * 45)
|
|
130
|
+
|
|
131
|
+
opcao = input("Escolha a plataforma: ")
|
|
132
|
+
|
|
133
|
+
if opcao == "1": gerar_whatsapp()
|
|
134
|
+
elif opcao == "2": gerar_telegram()
|
|
135
|
+
elif opcao == "3": gerar_instagram()
|
|
136
|
+
elif opcao == "4": gerar_messenger()
|
|
137
|
+
elif opcao == "5": gerar_sms()
|
|
138
|
+
elif opcao == "6": gerar_linkedin()
|
|
139
|
+
elif opcao == "7": gerar_twitter()
|
|
140
|
+
elif opcao == "8": gerar_signal()
|
|
141
|
+
elif opcao == "9": gerar_youtube()
|
|
142
|
+
elif opcao == "10": gerar_tiktok()
|
|
143
|
+
elif opcao == "11": gerar_pinterest()
|
|
144
|
+
elif opcao == "12": gerar_skype()
|
|
145
|
+
elif opcao == "0":
|
|
146
|
+
print("\nSocialLinker encerrado. Missão cumprida!")
|
|
147
|
+
sys.exit()
|
|
148
|
+
else:
|
|
149
|
+
print("\nOpção inválida!")
|
|
150
|
+
input("Aperte ENTER...")
|
|
151
|
+
|
|
152
|
+
# --- ENTRYPOINT OFICIAL ---
|
|
153
|
+
|
|
154
|
+
def main():
|
|
155
|
+
menu()
|
|
156
|
+
|
|
157
|
+
if __name__ == "__main__":
|
|
158
|
+
main()
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
sociallinker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
sociallinker/cli.py,sha256=d7MbFJANQc7eYotoHUP11obqZ63cwQtRXfNgaI2Ds3k,5003
|
|
3
|
+
sociallinker-2.6.0.dist-info/METADATA,sha256=LEnt1HaQaU2L8w5X-nUjn7adCNj23T2GFNnHnxIlbFs,218
|
|
4
|
+
sociallinker-2.6.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
|
|
5
|
+
sociallinker-2.6.0.dist-info/entry_points.txt,sha256=Yd2ryO5mn_RjxYiU7SQebiFmawnkjnP-SqzQEt54bBU,55
|
|
6
|
+
sociallinker-2.6.0.dist-info/top_level.txt,sha256=z3Yyml4VQlZE7wKpWyKzqpYj2a4Nvfhk4Q8c86H5ZXU,13
|
|
7
|
+
sociallinker-2.6.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sociallinker
|