简体   繁体   English

使用http表单并通过Selenium或标准HTTP post从Web获取数据在C#中获得?

[英]Using http forms and getting data from web by selenium or standard HTTP post get in c#?

I did not know how to name my topic. 我不知道该如何命名我的话题。 My plan is to get from web, some data. 我的计划是从网络中获取一些数据。 Some data return from submiting values into form. 一些数据从提交值返回到表单中。 And that form is on the web. 该表格在网络上。

I wonder, what would be faster: 我想知道什么会更快:

  • by using selenium for c# 通过将硒用于C#
  • by using standard functions in c# 通过在C#中使用标准函数
  • by using html agility pack 通过使用HTML敏捷包
  • My aim is to get very fast data and many times in minute. 我的目标是在几分钟内获得非常快的数据并且多次。 Can anybody give me any suggestion, which one would be the best? 谁能给我任何建议,哪个是最好的?

    PS. PS。 please correct my English, sorry. 请更正我的英语,对不起。

    You can probably make something that is reasonanly fast in C#, at least faster than using Selenium. 您可能可以在C#中完成相当快的操作,至少比使用Selenium更快。 Use HTML Agility Pack to avoid reinventing the wheel. 使用HTML Agility Pack避免重新发明轮子。

    However, somethings might be easier to do in Selenium, since it accurately replicates a real user. 但是,由于Selenium可以精确地复制真实用户,因此在Selenium中执行某些操作可能会更容易。

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

    相关问题 如何使用Web表单(不是MVC)从Ajax Http POST获取C#中服务器端的选中复选框值? - How to obtain checked checkbox values on the serverside in c# from an ajax Http POST using web forms (not MVC)? 如何使用Web表单(不是MVC或asmx页面)从ajax Http POST获取C#中服务器端的选中复选框值? - How to obtain checked checkbox values on the serverside in c# from an ajax Http POST using web forms (not MVC or asmx pages)? 如何在C#中获取HTTP Post数据? - How to Get the HTTP Post data in C#? Windows窗体应用程序C#的HTTP发布 - HTTP Post from Windows Forms application C# 从c#应用程序登录,获取表信息,单击网页中的按钮等(获取-POST HTTP) - Login, get info of a table, click buttons, etc in a web page from c# app (GET - POST HTTP) 使用c#进行http POST更新网页 - doing a http POST to update a web page using c# C#创建HTTP POST Web请求 - c# creating HTTP POST web request 使用C#与NSUrlSession进行HTTP POST多部分表单数据 - HTTP POST multipart form-data with NSUrlSession using c# 使用http post方法将数据发布到c#中的php网站 - Posting data to a php website in c# using http post method 从C#中的JSON POST方法获取HTTP响应消息 - Get HTTP response message from JSON POST method in C#
     
    粤ICP备18138465号  © 2020-2024 STACKOOM.COM