b*******r 发帖数: 28 | 1 手头有个活但不知道如何下手.
任务是到一个数据库网站,输入某个搜索条件和关键词,点击搜索后取得'搜索结果'页面
的源代码. 这个在web下很容易实现.但是我要用不同的关键词做5000次搜索,所以希望
能用Java, Perl 或者其他语言写个小程序.
我会用Java去获得静态url的源代码, 但是不知如何对付使用.aspx 结尾的动态网页.
初始界面和搜索结果界面是同样的url, 结尾都是 .aspx, 所以无法获得静态的url.
希望能给点建议,该如何入手呢? | b****u 发帖数: 1027 | 2 just post the data to the aspx page, and get the response html.
most of the time, if the form is simple enough, from what you said, it seems
just a search form with one single input box, so it's probably simple
enough, you can just append the search string after the aspx page and use
GET request and see if that brings out the results. |
|