我可以创建一个搜索网站,从指定网站获取搜索结果并显示它们吗? [英] Can I make a search website that takes search results from specifies websites and displays them?

查看:68
本文介绍了我可以创建一个搜索网站,从指定网站获取搜索结果并显示它们吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有某种脚本可用于我正在构建的网站,该网站将从其他网站提取结果并将其编译成结果列表。说我正在搜索iPhone...脚本将搜索我指定的几个网站,并返回一个链接列表,允许我点击它们并继续访问外部网站...



一切都有用。



谢谢!

I was wondering if there is some sort of script I can use for a website I'm building that will pull results from other website and compile it into a list of results. Say I was searching for "iPhone"... the script would search a few websites that I specify and would return a list with links that would allow me to click on them and proceed to the external website...

Anything is helpful.

Thanks!

推荐答案

如果您想搜索某些网站,有两种方法:

1.您可以创建自己的搜索引擎,其中包括网络爬虫,全文搜索机制和存储索引数据的数据库。 />
2.改用Google搜索。这种方式更容易。

你只需要创建一个这样的搜索表单:



If you want to search some websites, there are two ways:
1. You create your own search engine, which includes a web crawler, full text search mechanism and a database to store indexed data.
2. Use Google search instead. This way is much easier.
You just have to create a search form like this:

<form method="get" action="http://www.google.com/search">
    <input type="text" name="q" maxlength="255" value="" />
    <input type="submit" value="Search" />
    <input type="hidden" name="sitesearch" value="yoursite.com" />
</form>


这篇关于我可以创建一个搜索网站,从指定网站获取搜索结果并显示它们吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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