On Jun 10, 9:47 pm, Phillip B Oldham <[EMAIL PROTECTED]> wrote: > Hi. I'm stretching my boundaries in programming with a little python > shell-script which is going to loop through a list of domain names, > grab the whois record, parse it, and put the results into a csv. > > I've got the results coming back fine, but since I have *no* > experience with python I'm wondering what would be the preferred > "pythonic" way of parsing the whois string into a csv record. > > Tips/thoughts/examples more than welcome!
Generally, when doing a simple parsing you'd use re module (regular expression). More complex parsers would use pyparsing (3rd party module). I've never used pyparsing myself though. You might download pyparsing here:http://pyparsing.wikispaces.com/Download+and+Installation -- http://mail.python.org/mailman/listinfo/python-list