9

Possible Duplicate:
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?

marked as duplicate by Jeff Atwood Apr 30 '11 at 3:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Apr 28 '11 at 11:08

This question came from our site for professional and enthusiast programmers.

  • 1
    this one is for meta – kostja Apr 28 '11 at 10:18
  • 1
    I often find that Google is more convenient for this than the search box on each site. – Cody Gray Apr 28 '11 at 10:26
6

You can just search all sites using the stackexchange page? Is that what you mean?

http://stackexchange.com/ enter image description here

  • It's surprisingly hard to find by navigating from another site in the SE network if you don't want to type in the URL. Maybe that's another good idea for a userscript... – hippietrail Dec 23 '12 at 1:27
2

EDIT:

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[1]
    print "SEARCHING for '%s'" % topic
    search(topic, domain)
  • 1
    Wow, what an effort. – Grant Thomas Apr 28 '11 at 11:49
  • 1
    The Trilogy is not the entire StackExchange network! I am offended! – ЯegDwight Apr 28 '11 at 12:37
  • @RegDwight, LOL... I'm sure you have a text editor ;-) – Mike Pennington Apr 28 '11 at 12:45

Not the answer you're looking for? Browse other questions tagged .