Notify TLS Client
Cliente HTTP avançado em Python com suporte a TLS/SSL customizado, fingerprinting de navegadores e rotação automática de proxies. Construído sobre a biblioteca tls-client com funcionalidades adicionais para web scraping e automação resiliente.
🚀 Características Principais
- Fingerprinting TLS Avançado: Emula múltiplos navegadores (Chrome, Firefox, Safari, Edge, Mobile)
- Rotação Automática: Proxies e client identifiers com políticas configuráveis
- Recuperação Automática: Reconexão inteligente em erros e respostas proibidas
- Thread-Safe: Uso seguro em ambientes multi-threaded
- Configuração Modular: Sistema de configuração baseado em objetos reutilizáveis
- Presets Prontos: Configurações pré-definidas para casos de uso comuns
- HTTP/3 Support: Suporte opcional a QUIC/HTTP3
📦 Instalação
pip install notify-tls-client
Requisitos
- Python >= 3.12
- Sistema operacional: Windows, macOS, Linux (x86_64, ARM64)
🎯 Quick Start
Uso Básico
from notify_tls_client import NotifyTLSClient
# Cliente com configuração padrão
client = NotifyTLSClient()
# Fazer requisição
response = client.get("https://api.example.com/data")
print(response.status_code)
print(response.json())
Usando Presets (Recomendado)
from notify_tls_client import NotifyTLSClient
from notify_tls_client.config import ClientConfiguration
from notify_tls_client.core.proxiesmanager import ProxiesManagerLoader
# Carregar proxies
proxies = ProxiesManagerLoader().from_txt("proxies.txt")
# Preset para scraping agressivo
config = ClientConfiguration.aggressive(proxies)
client = NotifyTLSClient(config)
# Fazer múltiplas requisições
for i in range(100):
response = client.get("https://example.com/api/endpoint")
print(f"Request {i}: {response.status_code}")
Configuração Customizada
from notify_tls_client import NotifyTLSClient
from notify_tls_client.config import (
ClientConfiguration,
RotationConfig,
RecoveryConfig,
ClientConfig
)
config = ClientConfiguration(
proxies_manager=proxies,
rotation=RotationConfig(
requests_limit_same_proxy=50,
requests_limit_same_client_identifier=200,
random_tls_extension_order=True
),
recovery=RecoveryConfig(
instantiate_new_client_on_forbidden_response=True,
instantiate_new_client_on_exception=True,
change_client_identifier_on_forbidden_response=True,
status_codes_to_forbidden_response_handle=[403, 429, 503]
),
client=ClientConfig(
client_identifiers=["chrome_133", "firefox_120", "safari_17_0"],
disable_http3=False,
debug_mode=False
)
)
client = NotifyTLSClient(config)
📚 Presets Disponíveis
Simple
Uso básico com rotação de proxies padrão.
config = ClientConfiguration.simple(proxies)
Aggressive
Para scraping intensivo com recuperação automática completa.
config = ClientConfiguration.aggressive(proxies)
- Troca proxy a cada 10 requisições
- Troca client identifier a cada 50 requisições
- Recuperação automática em erros e 403/429/503
- Múltiplos client identifiers
Stealth
Foco em evitar detecção através de diversidade.
config = ClientConfiguration.stealth(proxies)
- 4 client identifiers diferentes
- Ordem de extensões TLS randomizada
- Rotação moderada (100 req/proxy)
Mobile
Simula dispositivos móveis.
# Android
config = ClientConfiguration.mobile(proxies, platform="android")
# iOS
config = ClientConfiguration.mobile(proxies, platform="ios")
🔧 Funcionalidades Avançadas
Rotação de Proxies
from notify_tls_client.core.proxiesmanager import ProxiesManagerLoader
# Carregar de arquivo
proxies = ProxiesManagerLoader().from_txt("proxies.txt")
# Formato do arquivo (um por linha):
# host:port
# host:port:username:password
# http://username:password@host:port
Client Identifiers Suportados
Desktop:
- Chrome:
chrome_133,chrome_131,chrome_120, etc. - Firefox:
firefox_120,firefox_117,firefox_110, etc. - Safari:
safari_17_0,safari_16_0, etc. - Edge, Opera
Mobile:
- Android:
okhttp4_android_13,okhttp4_android_12, etc. - iOS:
safari_ios_16_0,safari_ios_15_6, etc.
Recuperação Automática
config = ClientConfiguration(
recovery=RecoveryConfig(
# Criar nova sessão em respostas proibidas
instantiate_new_client_on_forbidden_response=True,
# Criar nova sessão em exceções
instantiate_new_client_on_exception=True,
# Trocar identifier em respostas proibidas
change_client_identifier_on_forbidden_response=True,
# Status codes que acionam recuperação
status_codes_to_forbidden_response_handle=[403, 429, 503]
)
)
Headers Customizados
config = ClientConfiguration(
client=ClientConfig(
default_headers={
"User-Agent": "Mozilla/5.0...",
"Accept-Language": "pt-BR,pt;q=0.9",
"Custom-Header": "value"
}
)
)
# Ou por requisição
response = client.get(
"https://example.com",
headers={"Authorization": "Bearer token"}
)
Cookies
# Obter todos os cookies
cookies = client.get_cookies()
# Obter cookie específico
value = client.get_cookie_by_name("session_id")
# Definir cookie
client.set_cookie("name", "value")
🔒 Thread Safety
A biblioteca é thread-safe e pode ser usada em ambientes multi-threaded:
import concurrent.futures
client = NotifyTLSClient(ClientConfiguration.aggressive(proxies))
def make_request(url):
return client.get(url)
with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
urls = ["https://example.com"] * 100
results = list(executor.map(make_request, urls))
📊 Logging
import logging
# Habilitar logs de debug
logging.basicConfig(level=logging.DEBUG)
# Ou configurar apenas para notify_tls_client
logger = logging.getLogger("notify_tls_client")
logger.setLevel(logging.DEBUG)
🛠️ Métodos HTTP Suportados
# GET
response = client.get(url, params={"key": "value"})
# POST
response = client.post(url, json={"data": "value"})
response = client.post(url, data="form data")
# PUT
response = client.put(url, json={"data": "value"})
# PATCH
response = client.patch(url, json={"data": "value"})
# DELETE
response = client.delete(url)
📖 Documentação Completa
Para documentação detalhada sobre arquitetura, componentes internos e exemplos avançados, consulte:
🤝 Contribuindo
Contribuições são bem-vindas! Por favor, leia CONTRIBUTING.md para detalhes sobre nosso código de conduta e processo de submissão de pull requests.
📝 Changelog
Veja CHANGELOG.md para histórico de versões e mudanças.
📄 Licença
Este projeto está licenciado sob a Licença MIT - veja o arquivo LICENSE para detalhes.
⚠️ Aviso Legal
Esta biblioteca é fornecida apenas para fins educacionais e de pesquisa. O uso desta ferramenta para violar termos de serviço de websites, realizar scraping não autorizado ou qualquer atividade ilegal é de sua responsabilidade. Os desenvolvedores não se responsabilizam pelo uso indevido desta biblioteca.
🙏 Agradecimentos
- tls-client - Biblioteca Go subjacente para TLS fingerprinting
- Comunidade Python por ferramentas e bibliotecas incríveis
📞 Suporte
- Issues: GitHub Issues
- Discussões: GitHub Discussions
Desenvolvido com ❤️ para a comunidade Python
Metadata
Release files for notify-tls-client 2.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| notify_tls_client-2.7.0.tar.gz | 58.7 MB | With provenance | Details for notify_tls_client-2.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notify_tls_client-2.7.0-py3-none-any.whl | Python 3 | none | any | Details for notify_tls_client-2.7.0-py3-none-any.whl |
Total release size: 117.7 MB
Release files / notify_tls_client-2.7.0.tar.gz
| Download URL | notify_tls_client-2.7.0.tar.gz |
|---|---|
| Size | 58.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ab88328f2432d5730ba6f969c376524fce5d578c4e7a1ca371308b7846f0ec3
|
|
BLAKE2b-256 checksum How to use checksums |
59d4260c269ac8e92b00d7781b43e5598058dd46f8a7373a518774a62cebafdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logRelease files / notify_tls_client-2.7.0-py3-none-any.whl
| Download URL | notify_tls_client-2.7.0-py3-none-any.whl |
|---|---|
| Size | 59.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9916145088f4f7b0ccd105d50cd2e4b8798d8f5c7b8ea5583687c83bb19b71
|
|
BLAKE2b-256 checksum How to use checksums |
a32911f27a8c9075dec3b1e0bc35fd8c3f2c815d4ab4809a501ed7d30edefdd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logSecurity for notify-tls-client 2.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for notify_tls_client-2.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.