我(是)一个Python开发谁正在构建一个GUI的Web应用程序刮。最近,我决定迁移到.NET框架和C#编写的同一应用程序(是不是我的这个决定)。
I am (was) a Python developer who is building a GUI web scraping application. Recently I've decided to migrate to .NET framework and write the same application in C# (this decision wasn't mine).
在Python中,我使用了机械化库。不过,我似乎无法找到任何在.NET相似。我需要的是一个浏览器将在一具无头模式,其中有填写表格的能力运行,提交他们等的JavaScript语法分析器是不是必须的,但它是非常有用的。
In Python, I've used the Mechanize library. However, I can't seem to find anything similar in .NET. What I need is a browser that will run in a headless mode, which has the ability to fill out forms, submit them, etc. JavaScript parser is not a must, but it would be quite useful.
有一些选项:
WebKit.Net (免费)
Awesomium 它是基于浏览器/ WebKit和工程就像一个魅力。 有一个免费的许可证可用,但也是一个商业之一,如果需要的话,你可以买到源$ C $ C: - )
Awesomium It is based on Chrome/WebKit and works like a charm. There is a free license available but also a commercial one and if need be you can buy the source code :-)
HTML敏捷性包(免费) 这有助于从HTML等提取信息,并可能对你有用的情况下(可能与HttpWebRequest)
HTML Agility Pack (free)
This helps with extracting information from HTML etc. and might be useful in your case (possibly in combination with HttpWebRequest
)