PDA

View Full Version : Making use of other search engines



menotin
08 Mar 2008, 06:54 PM
I know javascript can activate a search engine on another website and then bring up the page as if you had searched on that page, but what would happen if you had more than one website to search, using the same sort of method, rather than a full database or spidering the site you don't want the page to open but you want the data from the pages that would have opened to be read and brought together like a comparison site shows its info.

Would it also be possible for the same set up to read the pages that are linked to that page, those that have been searched for and show or not show the page on a criteria basis. such as location or post to or price.

If this is possible what would be the best langauge to use?

paulkoan
12 Mar 2008, 09:30 AM
Pretty much any scripting language can get a page from a website. So just pick the one you are most comfortable one. Perhaps php if you aren't sure.

This would be a back end process as you have probably guessed. Your user would type the search into a field which would be passed to the php script, and the script would execute the query on each search engine you want. It would then collate the results and filter as required, and present the page to the user.

Google and other search engines provide an API which allows you to interact with their site programatically, and let the search engine know how you want the results returned.

Some do not, in which case you would have to interpret the results yourself. This is referred to as 'scraping'. The better scraping libraries seem to be written for ruby. You could write the whole site in Ruby on Rails to take advantage of this, but check with your host that they support Ruby on Rails applications.

Have you done much coding so far?