简体   繁体   English

如何将桌面网络抓取器转换为网站?

[英]How do I convert a desktop webscraper to a website?

I have a desktop webscraper application written using C#.NET. 我有一个使用C#.NET编写的桌面Webscraper应用程序。 It works very simply. 它的工作非常简单。 The user imports input data in txt/csv/Excel. 用户在txt / csv / Excel中导入输入数据。 The app exports scraped and orginized results in an output file (csv, html). 该应用程序将抓取和原始的结果导出到输出文件(csv,html)中。

How can I make this accessible online, as a website? 如何使它作为网站在线访问? I haven't done web programming before (only desktop) and I do not know any web programming languages. 我以前没有做过网络编程(仅在台式机上),而且我不知道任何网络编程语言。 But I think I can learn ASP.NET and create similar webscraper functionality with it. 但是我想我可以学习ASP.NET并使用它创建类似的webscraper功能。

What kind of webhosting requirements do I have? 我有什么样的虚拟主机要求?

What you need to do is turn your desktop application into a library. 您需要做的是将您的桌面应用程序变成一个库。 Turn your EXE into a DLL with an API that does specific functions. 使用具有特定功能的API将EXE转换为DLL。 This means separating functional operations from UI operations. 这意味着将功能操作与UI操作分开。 Then, build a web application that uses this library to offer the same functionality online. 然后,构建一个使用此库的Web应用程序以在线提供相同的功能。 If you want to learn something new to build web applications, I suggest ASP.NET MVC and not ASP.NET Web Forms. 如果要学习构建Web应用程序的新知识,建议使用ASP.NET MVC,而不要使用ASP.NET Web Forms。 MVC is much closer to web development than web forms. MVC比Web表单更接近Web开发。

As for web hosting requirements, Any web host that support ASP.NET should be able to run ASP.NET MVC. 至于虚拟主机的要求,任何支持ASP.NET的虚拟主机都应能够运行ASP.NET MVC。

我在ASP.NET方面做了一些工作,但我认为将对您有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM