如何使用phantomjs或其他浏览器在nodejs中创buildWeb代理?

我一直在尝试使用phanthonjs或类似的方式创build一个Web代理服务器,并在浏览器中查看和导航

var phantom = require('phantom'); phantom.create().then(function(ph) { ph.createPage().then(function(page) { page.open('https://stackoverflow.com/').then(function(status) { console.log(status); page.property('content').then(function(content) { console.log(content); page.close(); ph.exit(); }); }); }); });