i made a twitterbot. and python is awesome.
Posted in Uncategorized on August 23rd, 2009 by admin – 1 CommentThis has been up for a while now, but I thought I’d share it.
dowcloses, my twitterbot. It posts every day what the DOW closed at, in case you’re a masochist and like to watch the decline of your net worth.
It was a quickie project that I did in Python, my new favorite language. I’ve been a C programmer my whole life, and I’ve dabbled with Java and perl when necessary, but nothing really grabbed me. Python is like no language I’ve used before, it really works with my head.
For a long time it dawdled along as a scripting alternative that lots of programmers just knew as “that language where whitespace matters”, but now that Google and several other big boys are really endorsing it, it’s getting more momentum, and I couldn’t be happier.
If you’re a programmer, and you use perl for your daily scripts, I can’t recommend Python highly enough. You can pick it up over a weekend, it’s insanely powerful and fast, and easier to use than any language I’ve ever tried. Honestly, it made me feel giddy with power, I was so used to programming being a struggle that I’d just assumed that’s how it would always be.
I’m doing a large scale project at work in Python now, and I’ve written several scripts to do web scraping, a la my twitterbot, or interacting with amazon through boto, and each and every time, I get up and running in a fraction of the time it used to take. Python is badass. Give it a shot.