开发者

Search Links on a page

I want to search my link on other pages by passing url address. After passing the url it should return some boolean value which will define the existence of my link.

Pre开发者_C百科ferred language ASP.net/C#

If it is possible, Please help me.


Get the html of you targeted url, e.g. : using php's fopen(), then parse it like a XML document, looking for any <a> element having its href attribute equal to your own website.

Should be few lines to write.


You can use HTQL COM object to parse the HTML page. Set a global variable 'link' as your url, then query it by: <a (href = link)>. If the link is found, isEOF() returns false, else it returns true.

See documentation at: http://htql.net/htql-com-manual.pdf.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜