fixed logger to output cleaner to console
This commit is contained in:
parent
7eeccfe8f2
commit
9b13ac4680
4 changed files with 272 additions and 10 deletions
|
|
@ -92,14 +92,14 @@ async function demonstrateCustomProxySource() {
|
|||
|
||||
const customSources : ProxySource[] = [
|
||||
{
|
||||
url: 'https://raw.githubusercontent.com/monosans/proxy-list/main/proxies/socks4.txt',
|
||||
url: 'https://raw.githubusercontent.com/monosans/proxy-list/main/proxies/http.txt',
|
||||
protocol: 'http'
|
||||
}
|
||||
];
|
||||
|
||||
try {
|
||||
const count = await proxyService.scrapeProxies(customSources);
|
||||
console.log(`✅ Scraped ${count} SOCKS4 proxies from custom source`);
|
||||
console.log(`✅ Scraped ${count} proxies from custom source`);
|
||||
} catch (error) {
|
||||
console.error('❌ Custom source scraping failed:', error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue