Opera Mini 类似开源软件

发布于 2024-11-16 23:39:10 字数 135 浏览 2 评论 0原文

我正在寻找任何(相关的?)开源项目,该项目在服务器端渲染网页并以图像形式传递给客户端(手机?)。就像 Opera Mini 和 SkyFire 一样。到目前为止,谷歌没有给我任何线索,因为我不知道该使用哪个术语。你们能给我一个线索吗?

谢谢

I'm looking for any(related?) opensource project that render web-pages at server side and deliver as images to client (mobiles?). Just like Opera Mini and SkyFire. So far, google does not give me a clue as I can't figure it out which term to use. Could you guys give me a clue?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

暖树树初阳… 2024-11-23 23:39:10

CutyCapt 似乎就是您正在寻找的东西。它使用 WebKit 并以不同的格式保存渲染的页面。例如:./CutyCapt --url=http://www.example.org --out=example.png

CutyCapt seems to be what you are looking for. It is using WebKit and saves rendered pages in different formats. For example: ./CutyCapt --url=http://www.example.org --out=example.png

凡间太子 2024-11-23 23:39:10

Opera Mini 服务器在将网站发送到手机之前不会将其处理为图像,而是处理为 OBML

The Opera Mini servers does not process the websites to images before sending them to phones, but to OBML.

有木有妳兜一样 2024-11-23 23:39:10

好吧,这个问题仍然没有答案,我也对这样的解决方案感兴趣。由于网上找不到任何有用的东西,我会尝试一下。请理解这个答案,而不是作为一个概念而不是一个现成的解决方案。

想象一个没有用户交互的简单工作流程。用户打开网站,您的服务器加载网站,渲染图像并将图像提供给您的手机。

为了确保您的图像是最新的 2 个日期,您还需要在 javascript 的任何 dom 操作上更新您的图像。这是一个棘手的问题,因为没有像“domChanged”这样的 JavaScript 事件。那么你能做什么呢?

我尝试构建一个非常小的 javascript 并将其与 phantomjs 一起使用

var page = require('webpage').create();
var i = 0;

page.onResourceReceived = function(response) {
  page.render('stocktwits.' + (i++) + '.png');
};

page.open("http://stocktwits.com/home#people-and-stocks");

我假设请求的资源可能会弄乱统治。但这并不涵盖任何纯 JavaScript setInterval 或 setTimout 函数。

一旦获得了所有“被动”内容,您就可以尝试提取任何超链接、表单元素以及所有使用“cursor:pointer;”样式的元素。这就是我现在陷入困境的地方......而且由于这更像是一个“爱好项目”,我将在这里放弃:-)但是请让我知道是否有人在这方面走得更远。

Ok, this question is still unanswered and I am interested in such a solution too. Since there is nothing useful findable on the web, I will give it a try. Please understand this answer rather as a concept than a ready to use solution.

Imagine a simple workflow with no user interaction. User opens a website, your server loads the website, renders an image and serves the image to your mobile.

To be sure your image is up 2 date, you will need to update your image on any dom manipulation from javascript too. This is a tricky one because there is no javascript event like "domChanged". So what can you do?

I have tried to build a very small javascript and use it with phantomjs

var page = require('webpage').create();
var i = 0;

page.onResourceReceived = function(response) {
  page.render('stocktwits.' + (i++) + '.png');
};

page.open("http://stocktwits.com/home#people-and-stocks");

I am assuming that requested resources are potentially messing up with the dom. But this is not covering any pure javascript setInterval or setTimout function.

Once you got all the "passive" stuff, you can try to extract any hyperlink, form elements and all elements styled with "cursor: pointer;". This is the point where I am stuck right now ... and since this is more a "hobby project" I am going to give up here :-) But let me know if anyone is going further on this.

泪之魂 2024-11-23 23:39:10

有一个类似的开源项目 Browsh,它在终端中显示网页,使用图像的真彩色块。这显着减少了数据使用量。尽管终端版本具有更多功能,但 html.brow.sh 甚至还有一个托管版本。

There is a similar open source project Browsh, which displays web pages in a Terminal, using true color blocks for images. This significantly reduces data usage. There is even a hosted version at html.brow.sh, although the Terminal version has more features.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文