Looking for a multi-site searching template
July 7, 2009 10:36 PM
Subscribe
I want to find a fairly easy-to-adapt template from which to do multiple site searching with a single term. My technical abilities are, let's say,
modest.
I sometimes need to search multiple art gallery/library/museum sites with the same term. I have a folder of about 20 links to the search pages for most of the major repositories - like NYPL, the Louvre, Met Museum, British Museum etc etc - and I normally go through each of them sequentially, when I need to do a blanket search, which is kind of time consuming.
I'm wondering if it's feasible to set up a *simple* html page locally that has a search box from which a single term can be searched from all these sites simultaneously and the extracted images/info compiled into a single results page? {It may be that this is best split between a couple/few html files so I'm not potentially loading 2000 images from 100 results each from the 20 repositories. Trial and error on this I s'pose.}
I have dorked around a bit with blogger templates and css and am moderately familiar with most markup. I haven't built anything really from scratch and I could probably recognise a few coding languages on a good day; but I certainly couldn't apply or modify them without help/copying. With that in mind, I would be happy to receive any tips or advice as to how this might be done (and indeed please tell me if it sounds a bit beyond my limited-ish capabilities).
I presume that a suitable template will be easy to find and copy, yeah?? And the adapting of it: will that be fairly reasonable?? We are not talking pretty: I just want something functional. {I guess one of the important issues will be identifying and compiling the correct search strings for each site hmm?}
posted by peacay to computers & internet (3 comments total)
What you may be able to get, as a half measure, is a form where you type in the search term once and it does the search on each site and opens each results page up in a separate window. So you'd still have to page through 20 pages but at least you wouldn't have to do the search manually. You could probably write this yourself with some javascript*, or there are existing sites that'll help you out with this kind of thing, like agent55.
*I would strongly suggest looking at existing sites to see if they do what you want, because it'll be easier. But if not, you'll probably want javascript like
function openWindows(term) {
var urls = [
'http://www.google.com/search?q=##QUERY##',
'http://www.bing.com/search?q=##QUERY##&go=&form=QBLH'
];
for (var i = 0; i < urls.length; i++) {
var url = urls[i].replace("##QUERY##", escape(term));
window.open(url, '', 'width=200,height=300,copyhistory=no');
}
}
with html like
<form action="">
<input name="search" value="" id="search">
<input type="button" value="BUTTON"
onclick="openWindows(document.getElementById('search').value)">
</form>
posted by inkyz at 11:53 PM on July 7