是否可以编写网页检查脚本并从免费服务器运行它? [英] Is it possible to write a webpage-checking script and run it from a free server?

查看:20
本文介绍了是否可以编写网页检查脚本并从免费服务器运行它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的问题很愚蠢而且在正确的地方,我很抱歉.

I am sorry if my question is silly and not at the right place.

我知道可以编写一个脚本(使用任何编程语言),每 20 分钟检查一次网页,记录其 HTML 代码(源代码)并将其存储在某个文件中.我也可以从我的电脑上运行它.

I know it's possible to write a script (in any programming language) that would check some webpage every 20 minutes, record its HTML code (source) and store it in some file. I also it's also possible to run it from my computer.

但是如果我不能一直保持电脑开着怎么办?您认为可以将此脚本上传到某个免费的 Web 服务器并一直从那里运行吗?

But what if I can't keep my computer on all the time? Do you think it's possible to upload this script to some free web server and run it from there all the time?

推荐答案

当然,这是可能的.您只需要为自己找一套可以借给您服务器来完成此类任务的装备.

Sure, it's possible. You just need to find yourself an outfit that will loan you a server for such a task.

您可以使用 Google App Engine http://code.google.com/appengine/ 如果您使用 Python 或 Java 编程.他们会让您注册免费的 Web 安装.事实上,您最多可以拥有 10 个网站.

You could go with Google App Engine http://code.google.com/appengine/ if you program in Python or Java. They will let you sign up for a free Web installation. In fact, you can have up to 10 sites.

不过那里没有文件.你必须学会​​使用他们有点古怪的数据库.

There are no files there, though. You'll have to learn to work with their slightly quirky database.

有一个定期运行作业的工具.但是,运行的内容必须是您的 Web 服务;一个简单的脚本是行不通的.

There is a facility for running jobs at regular intervals. What runs needs to be a Web service of yours, though; a simple script won't do.

最后,您必须编写一个 Web 服务,让您可以远程查询结果.都是网络服务:)

Finally, you'll have to write a Web service that will let you remotely query the results. It's all Web services :)

这篇关于是否可以编写网页检查脚本并从免费服务器运行它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆