Jump to content

Submit query to multiple sites and display results in one location?


austinthompson

Recommended Posts

 

    Ok, I am going to ask a question and try to explain my this so that it make sense. Wish me luck...

 

      Is it possible to write a script (or is there one out there already) that will search for specific results on multiple sites and then display the results in one location? Kind of the same way that dogpile does for search engines?

 

I think that made sense.

 

Feel free to ask questions for clarification if needed.

Link to comment
Share on other sites

specific sites or all sites? anything is possible :)

 

i would do it in 2 parts. a script that runs through all of your sites and searches them, and saves each result to a db.

and then a script that reads the db and prints out all of the records matching the search term.

Link to comment
Share on other sites

Check out the websites in question to see if they have a web API to retrieve data from.  For example if you were wanting to collate the results from Google, Yahoo and Bing, each of those websites have an API.  Though, not all are free.

 

The alternative, if the websites in question do not have an API is to retrieve the raw web document (HTML, XML) and search it for the data you want, called scraping.  Be sure to read the website' terms of service, as they might have limitations on that type of activity (such as requests per minute), also have your scraper read and follow robots.txt

 

After retrieving the data from the websites in question, its a simple matter of storage and display.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.