Profile

wshaffer: (Default)
wshaffer

September 2021

S M T W T F S
   123 4
56789 1011
12131415161718
19202122232425
2627282930  

Custom Text

Most Popular Tags

Python!

Jun. 10th, 2016 05:58 pm
wshaffer: (RTFM)
Just wrote my first script in Python. I was trying to extract the table of contents from a PDF file. I tried two different Ruby gems, each of which failed to work in a different annoying way. I eventually decided that continuing to troubleshoot would probably take me longer and be more irritating than installing Python, installing the PDFMiner library, and following the handy-dandy code example that showed exactly what I wanted to do.

Writing Python after achieving a certain fluency in Ruby reminded me almost exactly of trying to speak Italian in Florence after a lifetime of being steeped in Spanish. I could understand a lot, and generally make myself understood, but I could never pronounce the word "pollo" correctly on the first try.

Anyway, now I've gotta go read up on basic Python syntax so that I can actually do something useful with this information I've managed to extract.

Page Summary

Syndicate

RSS Atom

Expand Cut Tags

No cut tags

Style Credit