wgetProc = Popen(["wget", "-O", "-", "http://www.foo.com/bar.shtml"], stdout=PIPE) grepProc = Popen(["grep", "-o"], stdin=wgetProc.stdout, stdout=PIPE)