simpledownload 1.0.0__tar.gz
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.
- simpledownload-1.0.0/PKG-INFO +28 -0
- simpledownload-1.0.0/README.md +19 -0
- simpledownload-1.0.0/pyproject.toml +18 -0
- simpledownload-1.0.0/setup.cfg +4 -0
- simpledownload-1.0.0/simpledownload/__init__.py +0 -0
- simpledownload-1.0.0/simpledownload/cli.py +94 -0
- simpledownload-1.0.0/simpledownload.egg-info/PKG-INFO +28 -0
- simpledownload-1.0.0/simpledownload.egg-info/SOURCES.txt +9 -0
- simpledownload-1.0.0/simpledownload.egg-info/dependency_links.txt +1 -0
- simpledownload-1.0.0/simpledownload.egg-info/entry_points.txt +2 -0
- simpledownload-1.0.0/simpledownload.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simpledownload
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: CLI tool to generate simplified download links for public document platforms
|
|
5
|
+
Author: Tiago Rabelo
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# đ SimpleDownload CLI
|
|
11
|
+
|
|
12
|
+
Ferramenta de Estudo Livre
|
|
13
|
+
Feito por Tiago Rabelo
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
Criei esse app para ajudar estudantes a conseguirem baixar o que precisam de fontes com API pĂșblica sem precisar passar por nenhuma burocracia enfadonha.
|
|
18
|
+
|
|
19
|
+
O nosso tempo Ă© precioso e temos que aproveitar cada segundo.
|
|
20
|
+
|
|
21
|
+
Espero que esse app ajude vocĂȘ a economizar seu precioso tempo e assim contribua para o avanço cientĂfico!
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## đŠ Instalação
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install simpledownload
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# đ SimpleDownload CLI
|
|
2
|
+
|
|
3
|
+
Ferramenta de Estudo Livre
|
|
4
|
+
Feito por Tiago Rabelo
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Criei esse app para ajudar estudantes a conseguirem baixar o que precisam de fontes com API pĂșblica sem precisar passar por nenhuma burocracia enfadonha.
|
|
9
|
+
|
|
10
|
+
O nosso tempo Ă© precioso e temos que aproveitar cada segundo.
|
|
11
|
+
|
|
12
|
+
Espero que esse app ajude vocĂȘ a economizar seu precioso tempo e assim contribua para o avanço cientĂfico!
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## đŠ Instalação
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install simpledownload
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "simpledownload"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "CLI tool to generate simplified download links for public document platforms"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name="Tiago Rabelo" }
|
|
11
|
+
]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.8"
|
|
14
|
+
license = {text = "MIT"}
|
|
15
|
+
dependencies = []
|
|
16
|
+
|
|
17
|
+
[project.scripts]
|
|
18
|
+
simpledownload = "simpledownload.cli:main"
|
|
File without changes
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import re
|
|
3
|
+
|
|
4
|
+
# --- FUNĂĂES DE UTILIDADE (LIMPEZA E INTERFACE) ---
|
|
5
|
+
|
|
6
|
+
def limpar_tela():
|
|
7
|
+
# Funciona no Pydroid (Linux/Android) e no Windows
|
|
8
|
+
os.system('cls' if os.name == 'nt' else 'clear')
|
|
9
|
+
|
|
10
|
+
def mostrar_resultado(servico, link):
|
|
11
|
+
print("\n\033[1;32m" + "â"*55)
|
|
12
|
+
print(f" MOTOR {servico.upper()} ATIVADO COM SUCESSO!")
|
|
13
|
+
print(f" LINK: \033[1;37m{link}")
|
|
14
|
+
print("\033[1;32m" + "â"*55 + "\033[0m")
|
|
15
|
+
print("\n\033[1;33mPrĂłximos passos:\033[0m")
|
|
16
|
+
print("1. Clique no link acima para abrir no navegador.")
|
|
17
|
+
print("2. O site processarĂĄ o arquivo automaticamente.")
|
|
18
|
+
print("3. Clique em 'Download PDF' quando o botĂŁo aparecer.")
|
|
19
|
+
input("\n\033[1;36mPressione ENTER para voltar ao menu...\033[0m")
|
|
20
|
+
|
|
21
|
+
# --- MOTORES DE EXTRAĂĂO ---
|
|
22
|
+
|
|
23
|
+
def motor_scribd():
|
|
24
|
+
limpar_tela()
|
|
25
|
+
print("\033[1;36m" + "â" + "â"*43 + "â")
|
|
26
|
+
print("â EXTRAĂĂO DE DOCS SCRIBD â")
|
|
27
|
+
print("â" + "â"*43 + "â" + "\033[0m")
|
|
28
|
+
url = input("\nCole o link do Scribd: ").strip()
|
|
29
|
+
|
|
30
|
+
# Busca o ID numĂ©rico (8 a 12 dĂgitos)
|
|
31
|
+
busca_id = re.search(r'(\d{8,12})', url)
|
|
32
|
+
|
|
33
|
+
if busca_id:
|
|
34
|
+
doc_id = busca_id.group(1)
|
|
35
|
+
# Link de bypass via VPDFS (Direto pelo ID)
|
|
36
|
+
link_final = f"https://scribd.vpdfs.com/document/{doc_id}/"
|
|
37
|
+
mostrar_resultado("Scribd", link_final)
|
|
38
|
+
else:
|
|
39
|
+
print("\n\033[1;31m[ERRO] NĂŁo encontrei um ID de documento vĂĄlido neste link!\033[0m")
|
|
40
|
+
input("Pressione ENTER para tentar novamente...")
|
|
41
|
+
|
|
42
|
+
def motor_slideshare():
|
|
43
|
+
limpar_tela()
|
|
44
|
+
print("\033[1;33m" + "â" + "â"*43 + "â")
|
|
45
|
+
print("â EXTRAĂĂO DE SLIDES SLIDESHARE â")
|
|
46
|
+
print("â" + "â"*43 + "â" + "\033[0m")
|
|
47
|
+
url = input("\nCole o link do SlideShare: ").strip()
|
|
48
|
+
|
|
49
|
+
if "slideshare.net" in url.lower():
|
|
50
|
+
# Motor DocDownloader: jå cai na pågina de geração com a URL injetada
|
|
51
|
+
link_final = f"https://docdownloader.com/slideshare-downloader?url={url}"
|
|
52
|
+
mostrar_resultado("SlideShare", link_final)
|
|
53
|
+
else:
|
|
54
|
+
print("\n\033[1;31m[ERRO] Isso nĂŁo parece um link do SlideShare!\033[0m")
|
|
55
|
+
input("Pressione ENTER para tentar novamente...")
|
|
56
|
+
|
|
57
|
+
# --- MENU PRINCIPAL (SIMPLEDOWNLOAD) ---
|
|
58
|
+
|
|
59
|
+
def menu():
|
|
60
|
+
while True:
|
|
61
|
+
limpar_tela()
|
|
62
|
+
# Cores: Azul (\033[1;34m), Amarelo (\033[1;33m), Vermelho (\033[1;31m)
|
|
63
|
+
print("\033[1;34m" + "â" + "â"*43 + "â")
|
|
64
|
+
print("â SIMPLEDOWNLOAD CLI v1.0 â")
|
|
65
|
+
print("â 'Ferramenta de Estudo Livre - feito por Tiago Rabelo' â")
|
|
66
|
+
print("â" + "â"*43 + "â" + "\033[0m")
|
|
67
|
+
print("\n\033[1;37mEscolha o motor de download:\033[0m")
|
|
68
|
+
print("-" * 45)
|
|
69
|
+
print("\033[1;36m( 1 )\033[0m Scribd (PDFs e Documentos)")
|
|
70
|
+
print("\033[1;33m( 2 )\033[0m SlideShare (ApresentaçÔes)")
|
|
71
|
+
print("\033[1;30m( 3 ) [ Upgrade Futuro: Issuu/Academia ]\033[0m")
|
|
72
|
+
print("-" * 45)
|
|
73
|
+
print("\033[1;31m( 0 ) Sair do App\033[0m")
|
|
74
|
+
print("-" * 45)
|
|
75
|
+
|
|
76
|
+
opcao = input("\nOpção desejada: ")
|
|
77
|
+
|
|
78
|
+
if opcao == "1":
|
|
79
|
+
motor_scribd()
|
|
80
|
+
elif opcao == "2":
|
|
81
|
+
motor_slideshare()
|
|
82
|
+
elif opcao == "0":
|
|
83
|
+
print("\n\033[1;32mEncerrando SimpleDownload... Bons estudos!\033[0m")
|
|
84
|
+
break
|
|
85
|
+
else:
|
|
86
|
+
print("\n\033[1;31mOpção invålida! Tente de 0 a 2.\033[0m")
|
|
87
|
+
input("Pressione ENTER...")
|
|
88
|
+
|
|
89
|
+
# --- PONTO DE ENTRADA ---
|
|
90
|
+
def main():
|
|
91
|
+
menu()
|
|
92
|
+
|
|
93
|
+
if __name__ == "__main__":
|
|
94
|
+
main()
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simpledownload
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: CLI tool to generate simplified download links for public document platforms
|
|
5
|
+
Author: Tiago Rabelo
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# đ SimpleDownload CLI
|
|
11
|
+
|
|
12
|
+
Ferramenta de Estudo Livre
|
|
13
|
+
Feito por Tiago Rabelo
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
Criei esse app para ajudar estudantes a conseguirem baixar o que precisam de fontes com API pĂșblica sem precisar passar por nenhuma burocracia enfadonha.
|
|
18
|
+
|
|
19
|
+
O nosso tempo Ă© precioso e temos que aproveitar cada segundo.
|
|
20
|
+
|
|
21
|
+
Espero que esse app ajude vocĂȘ a economizar seu precioso tempo e assim contribua para o avanço cientĂfico!
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## đŠ Instalação
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install simpledownload
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
simpledownload/__init__.py
|
|
4
|
+
simpledownload/cli.py
|
|
5
|
+
simpledownload.egg-info/PKG-INFO
|
|
6
|
+
simpledownload.egg-info/SOURCES.txt
|
|
7
|
+
simpledownload.egg-info/dependency_links.txt
|
|
8
|
+
simpledownload.egg-info/entry_points.txt
|
|
9
|
+
simpledownload.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
simpledownload
|