[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"blog-post-ko-nodejs-proxy-sayongbeop":3},{"success":4,"payload":5,"related":77,"errors":147},true,{"id":6,"slug":7,"title":8,"excerpt":9,"body_html":10,"meta_title":11,"meta_description":12,"canonical_url":13,"canonical_override":14,"og_title":15,"og_description":16,"og_image_url":17,"faq_json":18,"key_takeaways":28,"allow_index":34,"noindex_google_only":34,"allow_follow":4,"published_at":35,"updated_at":36,"content_updated_at":37,"featured_image_url":38,"featured_image_alt":14,"card_image_url":39,"reading_time_minutes":40,"author":41,"categories":45,"tags":51,"alternates":63,"locale_paths":75,"views":76},4,"nodejs-proxy-sayongbeop","Node.js에서 프록시 사용하기 (Axios + Puppeteer + SDK)","Node.js에서 프록시를 사용하는 방법을 알아봅니다. Axios, Puppeteer와의 통합, ProxyHat SDK 활용, 동시 요청 관리 방법을 코드 예제와 함께 설명합니다.","\u003Ch2>Node.js에서 프록시가 필요한 이유\u003C\u002Fh2>\n\u003Cp>Node.js는 비동기 I\u002FO로 인해 웹 스크래핑과 자동화에 뛰어난 선택입니다. 수백 개의 동시 요청을 효율적으로 처리할 수 있습니다. 하지만 프록시 없이는 대상 사이트가 빠르게 IP를 차단합니다.\u003C\u002Fp>\n\u003Cp>이 가이드에서는 Node.js에서 프록시를 사용하는 모든 방법을 다룹니다 — Axios를 사용한 HTTP 요청, Puppeteer를 사용한 브라우저 자동화, \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fnode-sdk\" rel=\"noopener noreferrer\">ProxyHat SDK\u003C\u002Fa>를 활용한 간편한 프록시 관리.\u003C\u002Fp>\n\u003Ch2>Axios로 프록시 사용하기\u003C\u002Fh2>\n\u003Cp>Axios는 Node.js에서 가장 인기 있는 HTTP 클라이언트입니다. 프록시 설정 방법:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>import axios from 'axios';\nimport { HttpsProxyAgent } from 'https-proxy-agent';\n\nconst agent = new HttpsProxyAgent('http:\u002F\u002Fuser:pass@gate.proxyhat.com:8080');\n\nconst response = await axios.get('https:\u002F\u002Fexample.com\u002Fproducts', {\n  httpsAgent: agent,\n  timeout: 30000,\n});\n\nconsole.log(response.status);\nconsole.log(response.data);\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>SOCKS5 프록시 사용\u003C\u002Fh3>\n\u003Cpre>\u003Ccode>import axios from 'axios';\nimport { SocksProxyAgent } from 'socks-proxy-agent';\n\nconst agent = new SocksProxyAgent('socks5:\u002F\u002Fuser:pass@gate.proxyhat.com:1080');\n\nconst response = await axios.get('https:\u002F\u002Fexample.com', {\n  httpsAgent: agent,\n  httpAgent: agent,\n});\nconsole.log(response.status);\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>ProxyHat Node SDK\u003C\u002Fh2>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FProxyHatCom\u002Fnode-sdk\" rel=\"noopener noreferrer\">ProxyHat Node SDK\u003C\u002Fa>는 API 키로 바로 쓸 수 있는 프록시 URL을 만들어 줍니다. 요청은 undici 같은 HTTP 클라이언트로 보냅니다:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>import { ProxyHat } from 'proxyhat';\nimport { fetch, ProxyAgent } from 'undici';\n\nconst client = new ProxyHat({ apiKey: 'your_api_key' });\n\n\u002F\u002F 로테이팅 레지덴셜 프록시 URL (미국)\nconst proxyUrl = await client.connectionUrl({ country: 'us' });\n\n\u002F\u002F 로테이팅 프록시로 GET 요청\nconst response = await fetch('https:\u002F\u002Fexample.com\u002Fproducts', {\n  dispatcher: new ProxyAgent(proxyUrl),\n});\n\nconsole.log(response.status);\nconsole.log(await response.text());\n\n\u002F\u002F 요청마다 새 ProxyAgent(새 연결 = 새 IP)로 동시 스크래핑\nconst urls = [\n  'https:\u002F\u002Fexample.com\u002Fproduct\u002F1',\n  'https:\u002F\u002Fexample.com\u002Fproduct\u002F2',\n  'https:\u002F\u002Fexample.com\u002Fproduct\u002F3',\n];\n\nconst results = await Promise.all(\n  urls.map(url =&gt; fetch(url, { dispatcher: new ProxyAgent(proxyUrl) }))\n);\nresults.forEach(r =&gt; console.log(r.status));\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>Puppeteer와 프록시\u003C\u002Fh2>\n\u003Cp>Puppeteer로 헤드리스 브라우저에서 프록시를 사용하는 방법:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>import puppeteer from 'puppeteer';\n\nconst browser = await puppeteer.launch({\n  args: ['--proxy-server=http:\u002F\u002Fgate.proxyhat.com:8080'],\n});\n\nconst page = await browser.newPage();\n\n\u002F\u002F 프록시 인증\nawait page.authenticate({\n  username: 'your_username',\n  password: 'your_password',\n});\n\nawait page.goto('https:\u002F\u002Fexample.com\u002Fproducts');\nconst content = await page.content();\nconsole.log(content.substring(0, 500));\n\nawait browser.close();\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>동시성 제어\u003C\u002Fh2>\n\u003Cp>대량 스크래핑 시 동시 요청 수를 제한하여 프록시 풀 과부하를 방지합니다:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>import pLimit from 'p-limit';\nimport { ProxyHat } from 'proxyhat';\nimport { fetch, ProxyAgent } from 'undici';\n\nconst client = new ProxyHat({ apiKey: 'your_api_key' });\nconst proxyUrl = await client.connectionUrl({ country: 'us' }); \u002F\u002F 로테이팅 레지덴셜\nconst limit = pLimit(10); \u002F\u002F 최대 10개 동시 요청\n\nconst urls = Array.from({ length: 100 }, (_, i) =&gt;\n  `https:\u002F\u002Fexample.com\u002Fproduct\u002F${i + 1}`\n);\n\nconst results = await Promise.all(\n  urls.map(url =&gt;\n    limit(() =&gt; fetch(url, { dispatcher: new ProxyAgent(proxyUrl) }))\n  )\n);\n\nconsole.log(`성공: ${results.filter(r =&gt; r.status === 200).length}`);\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>오류 처리\u003C\u002Fh2>\n\u003Cp>프록시 연결 오류를 적절히 처리합니다:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>async function scrapeWithRetry(proxyUrl, url, maxRetries = 3) {\n  for (let attempt = 0; attempt &lt; maxRetries; attempt++) {\n    try {\n      \u002F\u002F 시도마다 새 ProxyAgent = 새 연결 = 새 IP\n      const response = await fetch(url, {\n        dispatcher: new ProxyAgent(proxyUrl),\n        signal: AbortSignal.timeout(30000),\n      });\n      if (response.status === 200) return response;\n    } catch (error) {\n      console.log(`시도 ${attempt + 1} 실패: ${error.message}`);\n      await new Promise(r =&gt; setTimeout(r, 2 ** attempt * 1000));\n    }\n  }\n  return null;\n}\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>모범 사례\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>동시성 제한\u003C\u002Fstrong> — p-limit 또는 유사 라이브러리로 동시 요청 수를 제한하십시오.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>타임아웃 설정\u003C\u002Fstrong> — 모든 요청에 적절한 타임아웃을 설정하십시오.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>재시도 로직\u003C\u002Fstrong> — 지수 백오프로 실패한 요청을 재시도하십시오.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>메모리 관리\u003C\u002Fstrong> — Puppeteer 사용 시 페이지와 브라우저를 적절히 닫아 메모리 누수를 방지하십시오.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>연결 풀링\u003C\u002Fstrong> — HTTP Agent를 재사용하여 연결 오버헤드를 줄이십시오.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Node.js 스크래핑을 시작하시겠습니까? \u003Ca href=\"\u002Fko\u002Fpricing\">ProxyHat 요금제\u003C\u002Fa>를 확인하고 \u003Ca href=\"https:\u002F\u002Fdocs.proxyhat.com\u002F\" rel=\"noopener noreferrer\">API 문서\u003C\u002Fa>로 시작하십시오.\u003C\u002Fp>","Node.js에서 프록시 사용하기 가이드","Node.js에서 프록시를 사용하는 완벽한 실전 가이드입니다. Axios, Puppeteer, ProxyHat SDK를 활용한 HTTP 요청과 브라우저 자동화의 코드 예제를 제공하며 동시 요청 관리, 에러 처리, 프록시 풀 관리까지 상세히 안내합니다.","\u002Fko\u002Fblog\u002Fnodejs-proxy-sayongbeop",null,"Node.js에서 프록시 사용하기","Node.js에서 프록시 설정. Axios, Puppeteer, ProxyHat SDK 예제.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fnodejs-proxy-sayongbeop-og.webp",[19,22,25],{"question":20,"answer":21},"Node.js에서 Axios로 프록시를 어떻게 사용합니까?","Axios 설정에서 proxy 옵션을 사용하거나 https-proxy-agent를 사용하여 프록시를 설정할 수 있습니다. ProxyHat SDK를 사용하면 프록시 관리가 자동으로 처리됩니다.",{"question":23,"answer":24},"Puppeteer에서 프록시를 어떻게 설정합니까?","Puppeteer 실행 시 --proxy-server 인수를 전달하면 됩니다. 인증이 필요한 경우 page.authenticate() 메서드를 사용하여 사용자 이름과 비밀번호를 설정합니다.",{"question":26,"answer":27},"Node.js에서 동시 프록시 요청을 어떻게 관리합니까?","Promise.all이나 p-limit 같은 동시성 제어 라이브러리를 사용합니다. 동시 요청 수를 제한하여 프록시 풀에 과부하를 주지 않도록 관리하는 것이 중요합니다.",[29,30,31,32,33],"Axios에서는 `https-proxy-agent`나 `socks-proxy-agent`를 사용해 HTTP 및 SOCKS5 프록시를 설정할 수 있습니다.","Puppeteer는 `--proxy-server` 인수와 `page.authenticate()` 메서드로 프록시 인증을 처리합니다.","ProxyHat Node SDK를 사용하면 자동 로테이션과 세션 관리 기능을 통해 프록시 관리를 간소화할 수 있습니다.","`p-limit` 라이브러리로 동시 요청 수를 제한하여 대량 스크래핑 시 프록시 풀 과부하를 방지하세요.","지수 백오프를 활용한 재시도 로직과 타임아웃 설정을 통해 프록시 연결 오류를 적절히 처리해야 합니다.",false,"2026-01-06T09:05:38+00:00","2026-07-19T03:13:07+00:00","2026-11-17T10:13:54+00:00","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fnodejs-proxy-sayongbeop-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fnodejs-proxy-sayongbeop-card.webp",12,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},"ProxyHat Team","proxyhat-team","The ProxyHat editorial team covers proxies, web scraping, and data extraction.",[46],{"id":6,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},"gaebaljja-gaideu","개발자 가이드","개발자 가이드 | ProxyHat 블로그","프록시를 애플리케이션에 통합하기 위한 코드 튜토리얼 및 SDK 가이드.",[52,56,60],{"id":53,"slug":54,"name":55},1,"web-scraping","웹 스크래핑",{"id":57,"slug":58,"name":59},10,"nodejs","Node.js",{"id":40,"slug":61,"name":62},"sdk","SDK",{"tr":64,"pt":65,"es":66,"de":67,"en":68,"ru":69,"ja":70,"pl":71,"ko":13,"it":72,"zh":73,"fr":74,"x-default":68},"\u002Ftr\u002Fblog\u002Fnodejs-ile-proxy-kullanimi","\u002Fpt\u002Fblog\u002Fusando-proxies-em-nodejs","\u002Fes\u002Fblog\u002Fusar-proxies-en-nodejs","\u002Fde\u002Fblog\u002Fproxies-in-nodejs-verwenden","\u002Fblog\u002Fusing-proxies-in-nodejs","\u002Fru\u002Fblog\u002Fispolzovanie-proksi-v-nodejs","\u002Fja\u002Fblog\u002Fnodejs-de-prokishi-wo-tsukau","\u002Fpl\u002Fblog\u002Fkorzystanie-z-proxies-w-nodejs-axios-puppeteer-sdk","\u002Fit\u002Fblog\u002Futilizzo-dei-proxy-in-nodejs-axios-puppeteer-sdk","\u002Fcn\u002Fblog\u002Fnodejs-shiyong-daili","\u002Ffr\u002Fblog\u002Futiliser-des-proxies-en-nodejs",{"tr":64,"pt":65,"es":66,"de":67,"en":68,"ru":69,"ja":70,"pl":71,"ko":13,"it":72,"zh":73,"fr":74},74,[78,95,112,130],{"id":79,"slug":80,"title":81,"excerpt":82,"featured_image_url":83,"featured_image_alt":14,"card_image_url":84,"og_image_url":85,"published_at":86,"updated_at":36,"content_updated_at":87,"reading_time_minutes":40,"is_featured":34,"indexable":34,"views":88,"author":89,"categories":90,"tags":92},50,"anjeongjeok-scraping-akitecheo","안정적인 스크래핑 아키텍처 설계","안정적이고 확장 가능한 스크래핑 아키텍처를 설계하는 방법. 내결함성, 데이터 일관성, 모니터링, 확장성을 갖춘 프로덕션급 시스템 구축을 다룹니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fanjeongjeok-scraping-akitecheo-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fanjeongjeok-scraping-akitecheo-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fanjeongjeok-scraping-akitecheo-og.webp","2026-02-24T06:55:16+00:00","2026-02-26T00:44:30+00:00",68,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[91],{"id":6,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},[93,94],{"id":40,"slug":61,"name":62},{"id":53,"slug":54,"name":55},{"id":96,"slug":97,"title":98,"excerpt":99,"featured_image_url":100,"featured_image_alt":14,"card_image_url":101,"og_image_url":102,"published_at":103,"updated_at":36,"content_updated_at":87,"reading_time_minutes":104,"is_featured":34,"indexable":34,"views":105,"author":106,"categories":107,"tags":109},41,"proxy-seongneung-monitoring","프록시 성능 모니터링: 지연 시간, 성공률, 알림","프록시 성능을 모니터링하는 방법. 지연 시간, 성공률, 대역폭 사용량 추적, 알림 설정, 대시보드 구축을 코드 예제와 함께 설명합니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-seongneung-monitoring-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-seongneung-monitoring-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-seongneung-monitoring-og.webp","2026-02-15T00:39:23+00:00",11,75,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[108],{"id":6,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},[110,111],{"id":40,"slug":61,"name":62},{"id":53,"slug":54,"name":55},{"id":113,"slug":114,"title":115,"excerpt":116,"featured_image_url":117,"featured_image_alt":14,"card_image_url":118,"og_image_url":119,"published_at":120,"updated_at":36,"content_updated_at":37,"reading_time_minutes":57,"is_featured":34,"indexable":34,"views":121,"author":122,"categories":123,"tags":127},36,"scraping-infra-hwakjang","스크래핑 인프라 확장 방법","웹 스크래핑 인프라를 확장하는 방법. 분산 아키텍처, 큐 시스템, 워커 관리, 데이터 파이프라인, 모니터링 시스템 구축 방법을 설명합니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-infra-hwakjang-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-infra-hwakjang-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fscraping-infra-hwakjang-og.webp","2026-02-09T14:42:34+00:00",49,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[124],{"id":53,"slug":54,"name":55,"description":14,"meta_title":125,"meta_description":126,"parent_id":14},"웹 스크래핑 가이드 | ProxyHat 블로그","웹 스크래핑 기술, 프록시 전략, 데이터 추출 모범 사례.",[128,129],{"id":53,"slug":54,"name":55},{"id":40,"slug":61,"name":62},{"id":131,"slug":132,"title":133,"excerpt":134,"featured_image_url":135,"featured_image_alt":14,"card_image_url":136,"og_image_url":137,"published_at":138,"updated_at":36,"content_updated_at":139,"reading_time_minutes":40,"is_featured":34,"indexable":34,"views":140,"author":141,"categories":142,"tags":144},35,"proxy-yocheong-dongsiseong-hwakjang","동시성 제어로 프록시 요청 확장하기","대규모 프록시 요청의 동시성을 효율적으로 제어하는 방법. 연결 풀링, 세마포어 패턴, 백프레셔 관리, 언어별 구현 코드를 제공합니다.","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-yocheong-dongsiseong-hwakjang-master.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-yocheong-dongsiseong-hwakjang-card.webp","https:\u002F\u002Fstatic.proxyhat.com\u002Fstorage\u002Fblog\u002Fproxy-yocheong-dongsiseong-hwakjang-og.webp","2026-02-08T11:16:13+00:00","2026-02-26T00:40:55+00:00",358,{"name":42,"slug":43,"bio":44,"avatar_url":14,"website_url":14,"social_links":14},[143],{"id":6,"slug":47,"name":48,"description":14,"meta_title":49,"meta_description":50,"parent_id":14},[145,146],{"id":40,"slug":61,"name":62},{"id":53,"slug":54,"name":55},[]]