从自动化网页越来越报告 [英] Automate getting report from webpage

查看:267
本文介绍了从自动化网页越来越报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个Java开发人员,我有一个关于自动化,我被赋予了任务的问题。我不得不每天3次,登录到这个网站,我们在工作中,选择了一些表单元素,然后点击提交拿到打印出来的报告。我不知道我怎么能写一些脚本将自动执行此任务吗?我应该从哪里开始呢?我应该做它在什么语言?我想PHP也许能做到这一点,甚至Greasemonkey的脚本可能?

I'm a Java developer and I have a question about automating a task I've been given. I'm having to 3 times daily, login to this website we have at work, select a few form elements and then click on submit to get a report printed out. I'm wondering how I can write some sort of script that will automate this task? Where should I start? What language should I do it in? I was thinking PHP might be able to do this or even a greasemonkey script possibly?

非常感谢。

推荐答案

查看卷曲在PHP。它可以让你做code Web浏览器的所有正常功能(除移动鼠标除外)。是的,你需要做的屏幕抓取。

Check out cURL in PHP. It allows you to do all the normal functions of a web browser with code (other than moving the mouse). And yes, you'll need to do screen scraping.

这篇关于从自动化网页越来越报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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