parsing in python
jayronsoares at gmail.com
Wed Aug 3 09:26:26 EDT 2011
I've created a simple method to grab files texts from directory by words
random, however I figure out that I need extract the content inside of each
file, in fact I believe I have to create a parsing, nonetheless I don't
know how to create a parser.
Please some could share some tips to do it?
here is the code:
# -*- conding: utf-8 -*-
from subprocess import Popen, PIPE
pesquisa = raw_input(" Digite a pesquisa de interesse: ")
p = Popen(["search", pesquisa],stdout=PIPE)
resultado = p.communicate()
*" A Vida é arte do Saber...Quem quiser saber tem que Estudar!"*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list