在ASP dot NET中删除数据 [英] Scrapping data in ASP dot NET

查看:91
本文介绍了在ASP dot NET中删除数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我在c#中使用Selenium来废弃网站上的数据。我只是硒中的新手。我为此创建了一个控制台应用程序。但我需要在主网站上实现这个刮板功能,以便网站的管理员可以根据他的要求或需要时的任何时间间隔来抓取数据。我在主网站的后端使用asp .net web api。现在我正在尝试执行控制台exe以从web api中删除。



你能帮我解决这个问题吗?最好的方法是什么?你会为这个要求推荐什么?



谢谢

Vikas



我尝试了什么:



我为此创建了一个控制台应用程序。但我需要在主网站上实现这个刮板功能,以便网站的管理员可以根据他的要求或需要时的任何时间间隔来抓取数据。我在主网站的后端使用asp .net web api。现在我正在尝试执行控制台exe以从web api中删除。我只想知道最佳方法是什么?

解决方案

你不应该从网站执行外部应用程序(安全问题)。



将必要的代码从控制台应用程序移动到Web应用程序,或者在Web应用程序中引用控制台应用程序程序集并按原样使用代码。

Hello

I am using Selenium in c# to scrap the data from a site.I am just new in selenium. I have created a console app for that. But I need to implement this scrapper functionality on the main website so that website's admin can scrape the data as per his requirement or any time interval when he is required.I am using asp .net web api at the back end in the main website.Now I am trying to execute the console exe to scrape from web api.

Could you please help me with this? What is the best way to do this and what would you recommend for this requirement?

Thanks
Vikas

What I have tried:

I have created a console app for that. But I need to implement this scrapper functionality on the main website so that website's admin can scrape the data as per his requirement or any time interval when he is required.I am using asp .net web api at the back end in the main website.Now I am trying to execute the console exe to scrape from web api.I just want to know about what is best way to do this?

解决方案

You shouldn't be executing external applications from a web site (security concerns).

Either move the necessary code from the console app to the web app, or reference the console app assembly in your web app and use the code as is.


这篇关于在ASP dot NET中删除数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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