是否有一个.NET相当于Perl的LWP / WWW的::机械化?有一个、NET、Perl、LWP

2023-09-03 01:36:14 作者:Smileヾ靣対亽玍

与.NET的的HttpWebRequest / 响应工作对象之后,我宁愿拍自己不是用它来抓取通过网站。我正在寻找一个现有的.NET库,可以获取URL,并给你跟踪链接,提取/填写/页等上提交表单Perl的 LWP 和 WWW ::机械化模块做到这一点非常好,但我正与一个.NET项目。

After working with .NET's HttpWebRequest/Response objects, I'd rather shoot myself than use this to crawl through web sites. I'm looking for an existing .NET library that can fetch URLs, and give you the ability to follow links, extract/fill in/submit forms on the page, etc. Perl's LWP and WWW::Mechanize modules do this very well, but I'm working with a .NET project.

我遇到的 HTML敏捷性包,看起来真棒,但它停止短模拟链路/形式。

I've come across the HTML Agility Pack, which looks awesome, but it stops short of simulating links/forms.

有没有这样的工具已经存在?

Does such a tool already exist?

推荐答案

有人建了一下code作为一个插件到HTML敏捷性包(这也是我的爱)运行,可以让你做一点形式的修修补补:

Somebody built a bit of code to run as an addon to the HTML Agility Pack (which I also love) that allows you to do a bit of form tinkering:

http://apps.ultravioletconsulting.com/projects/uvcwebtransform/docs/class_html_agility_pack_1_1_add_ons_1_1_form_processor_1_1_form_processor.html

我读了审查,认为它不是WWW ::机械化,但它是一个很好的开始。在code提供,所以你可能能够很容易地扩展它。

I read a review that says it's not WWW::Mechanize, but it's a great start. The code is provided, so you might be able to easily extend it.