isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:
I use #Python for small tasks all the time. Yesterday I needed to extract data from a dozen of similarly formatted emails, so I fired up ipython and used:
- email.parser: parse .eml files
- quopri: decode into normal text
- re: pick out the parts I needed
- datetime.strptime: parse and reformat dates
- Path.glob: suck up all .eml files from a directory
- csv.DictWriter: dump the final fileAll of it is in the standard library, and I didn't even have to leave the shell.