如何在python中使用代理并扭曲来获取页面
如果您有诸如 http://222.126.99.99:8909 之类的代理,您是否可以访问浏览器中的 url,例如 www.cnn.com http://222.126.99.99:8909/www.cnn.com。
这是真的吗,从twisted我可以使用代理获取如下页面吗?
iUrl=http://222.126.99.99:8909/www.cnn.com
client.getPage(iUrl,method='GET').addCallback(self.processPage,iUrl).addErrback(self.printError,iUrl)
Is it true that if you have a proxy such as http://222.126.99.99:8909 that you can access a url from the browser e.g. www.cnn.com as http://222.126.99.99:8909/www.cnn.com.
Is this is true, from twisted can I use the proxy to get a page as follows?
iUrl=http://222.126.99.99:8909/www.cnn.com
client.getPage(iUrl,method='GET').addCallback(self.processPage,iUrl).addErrback(self.printError,iUrl)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
格式为:
尽管它已已弃用。
请注意,通过 http 发送您的用户名和密码并不安全。
The format is:
Though it is deprecated.
Note, it is not safe to send your username and password over http.