是否有一个.NET相当于Perl的LWP / WWW的::机械化? [英] Is there a .NET equivalent of Perl's LWP / WWW::Mechanize?

查看:127
本文介绍了是否有一个.NET相当于Perl的LWP / WWW的::机械化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与.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:

<一个href="http://apps.ultravioletconsulting.com/projects/uvcwebtransform/docs/class_html_agility_pack_1_1_add_ons_1_1_form_processor_1_1_form_processor.html" rel="nofollow">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.

这篇关于是否有一个.NET相当于Perl的LWP / WWW的::机械化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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