[英]C# Getting info from a web id
I want to get text from a website, but from a certain element, does any one have any clues? 我想从网站上获取文本,但是从某个元素来看,有人有任何线索吗?
From example the code I have to make text form a text box to a website textbox is 从示例代码中,我必须使文本从文本框变为网站文本框是
webBrowser1.Document
.GetElementById("MySchool_login")
.SetAttribute("value", textBox1.Text);
What you want to do is called as screen scrapping . 您要执行的操作称为屏幕抓取 。 You can use Watin for this.
您可以为此使用Watin 。 Or else you can use WebResponse and WebRequest to achieve this also.
否则,您也可以使用WebResponse和WebRequest来实现此目的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.