Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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!
Posted

1 solution

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:

HTML
<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>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900