跨外部网站搜索 [英] Search across external websites

查看:98
本文介绍了跨外部网站搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,在该应用程序中需要搜索笔记本电脑的地方,它应该跨越戴尔和索尼,并在页面中返回结果,当我单击这些项目时,它应该带我到那些网站.

I have an application where in where I need to search for Laptop , it should across dell and sony and return the results in my page and when I click on those items it should take me to those sites.

能否让我知道如何使用此功能

Can you please let me know how to go with this

推荐答案

在搜索Code Project中不相关的内容时,我发现了这篇文章,它可能是您基于粗略阅读而找到的: http://www.codeproject.com/KB /IP/Searcharoo_3.aspx


很遗憾,我不认为有一个简单的答案.听起来,您需要执行以下操作:

Unfortunately I do not believe there is a single simple answer for this.  By the sounds of it you would need to do the following:

1.了解HTML的确切结构,因为它位于您要定位的每个网站中.

1. Understand the exact structure of the HTML as it resides in each site that you are targetting.

2.编写一些代码,以根据需要下载这些目标页面.鉴于许多产品页面本质上都是动态的(而不是静态网页),所以这可能比您想象的要困难得多.

2. Write some code that would download these target pages on demand.  This can be much more difficult than what you might think, given that many product pages can be dynamic in nature (not static web pages).

3.从目标页面解析HTML并收集有用的信息.

3. Parse the HTML from the target pages and glean the useful information.

我的建议:尝试使用某些第三方应用程序或网站来实现这一目标.

My recommendation: attempt to accomplish this using some third party application or web site.

提示


Thnx进行回复.

Thnx for the Reply.

马克...

我正在尝试在我的项目中实现相同的目标

i am trying to implement the same in my project


这篇关于跨外部网站搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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