如何将其他网站的搜索结果导入我的网站? [英] How do I get search results from other websites into my website?

查看:85
本文介绍了如何将其他网站的搜索结果导入我的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
最近,我访问了一个网站,如果您愿意,可以查看以下链接: www.compareandrecycle.co.uk [ ^ ]

在此站点中,用户可以搜索产品,并且从其他站点收集结果并按顺序显示结果.但是,当用户单击产品的特定链接时,该用户将被重定向到搜索结果所来自的站点.

现在我的问题是,如何通过.net来实现这一点?是通过调用那些站点发布的Web服务还是仅通过将查询传递到该站点的搜索引擎来实现的?一旦获得搜索结果,那么如何收集该站点的结果并将其显示在当前站点中?

如果有人可以建议任何代码或至少说明该过程,那么它将大有帮助.

最好的问候.

Hi friends,
Recently I came accross a website, if you wish you can check this link: www.compareandrecycle.co.uk[^]

In this site, user can search for a product and result is collected from different other sites and shown in an order. However when a user clicks a particular link of a product then user is redirected to that site where the search result came from.

Now my question is how this is implemented in terms of .net? Is it by calling webservices published by those sites or just by passing the query to that site''s search engine? And once the search result is obtained then how the results from that site is collected and shown in the current site?

If anyone can suggest any code or at least explain the process then it will be of great help.

Best Regards.

推荐答案

You could use an HTTPRequest

<a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx">http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx" target="_blank" title="New Window">^</a>]

Though you are going to need to experiment a bit on how to pass custom params through.


Web services Is a completely different matter and it would be made for the expressed purpose of transfering result to an external application or website. Best is to approuch those sites ask them if they have such a service or is interest in , otherwise you are better off pulling the page data via a HTTPRequest


这篇关于如何将其他网站的搜索结果导入我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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