-1

是否可以在我的 Windows PC 上使用 Perl 的 LWP 来抓取 iPhone Web 应用程序的内容?如果是,我应该更改哪些参数或有人可以提供示例?

4

2 回答 2

0

It's possible to get the web application, but you probably won't be able to do anything with it in Perl because most of the fun stuff happens with Javascript. However, you might be able to extract various data, links, and so on.

To see what your phone is sending to websites, write a little CGI program to dump it's input and environment. You'll especially be interested in the user-agent string. Through LWP::UserAgent, you can set any of those values yourself.

于 2011-07-31T23:39:39.640 回答
0

不,在 iPhone 上运行的 Web 应用程序是在浏览器内部运行的。LWP 允许您连接到 Web服务器,而不是 Web浏览器。也就是说,您从哪里获得 Web 应用程序?你可以直接在 Perl 中使用WWW::HTMLUnit.

于 2011-07-31T22:29:48.890 回答