讓 puppeteer 可透過 proxy 擷取資料
透過 JSON 指定 url 或 proxy (選用),其中 proxy 必須包含通訊協定 (http 或 https)。
curl 範例:
curl -X POST -d '{"url":"https://zeroplex.tw/ip","proxy":"http://your.proxy:3128"}' http://puppeteer.host:38080 {"httpStatusCode":200,"html":"<html><head></head><body>10.1.1.1</body></html>"}docker pull:
docker pull johnroyer/html-renderer-puppeteer:latestrun:
docker run -d --name html-renderer-puppeteer \ -p 38080:38080 \ johnroyer/html-renderer-puppeteer:0.1.4