我是一个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.
更多推荐
从自动化网页越来越报告
发布评论