✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
socks-proxy-agent
|
|
================
|
|
### A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
|
|
|
|
This module provides an `http.Agent` implementation that connects to a
|
|
specified SOCKS proxy server, and can be used with the built-in `http`
|
|
and `https` modules.
|
|
|
|
It can also be used in conjunction with the `ws` module to establish a WebSocket
|
|
connection over a SOCKS proxy. See the "Examples" section below.
|
|
|
|
Examples
|
|
--------
|
|
|
|
```ts
|
|
import https from 'https';
|
|
import { SocksProxyAgent } from 'socks-proxy-agent';
|
|
|
|
const agent = new SocksProxyAgent(
|
|
'socks://your-name%40gmail.com:abcdef12345124@br41.nordvpn.com'
|
|
);
|
|
|
|
https.get('https://ipinfo.io', { agent }, (res) => {
|
|
console.log(res.headers);
|
|
res.pipe(process.stdout);
|
|
});
|
|
```
|
|
|
|
#### `ws` WebSocket connection example
|
|
|
|
```ts
|
|
import WebSocket from 'ws';
|
|
import { SocksProxyAgent } from 'socks-proxy-agent';
|
|
|
|
const agent = new SocksProxyAgent(
|
|
'socks://your-name%40gmail.com:abcdef12345124@br41.nordvpn.com'
|
|
);
|
|
|
|
var socket = new WebSocket('ws://echo.websocket.events', { agent });
|
|
|
|
socket.on('open', function () {
|
|
console.log('"open" event!');
|
|
socket.send('hello world');
|
|
});
|
|
|
|
socket.on('message', function (data, flags) {
|
|
console.log('"message" event! %j %j', data, flags);
|
|
socket.close();
|
|
});
|
|
``` |