Cross Stack Exchange Search
Is there an effective way to search for questions across Stack Exchange sites, or do I need to repeat the search on Stack Overflow, Super User, and any other SE sites that I think might be relevant?
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.Sign up to join this community
You can just search all sites using the stackexchange page? Is that what you mean?
I wrote this before I saw the very simple search on stackexchange.
Call this script with
python googse.py "<insert search string>" | less. It will search google for anything on stackoverflow.com, serverfault.com or superuser.com. You get the page title, a summary description and a url. Unfortunately xgoogle has to be manually downloaded and unzipped in your
PYTHONPATH (which includes your current working directory). I hope this is useful.
import sys from xgoogle.search import GoogleSearch, SearchError # download xgoogle from here # http://www.catonmat.net/download/xgoogle.zip def search(topic, sedomain): try: gs = GoogleSearch("%s site:%s" % (topic, sedomain)) gs.results_per_page = 50 results = gs.get_results() for res in results: print "TITLE: %s" % res.title.encode("utf8") print res.desc.encode("utf8") print "URL: %s" % res.url.encode("utf8") print except SearchError, e: print "Search failed: %s" % e for domain in ['stackoverflow.com', 'serverfault.com', 'superuser.com']: topic = sys.argv print "SEARCHING for '%s'" % topic search(topic, domain)