python category archive


27 June 2009

Python script: Extract slashdot user names and ID numbers from a story discussion

I was reading slashdot yesterday and some (inane) comments about people's user ID numbers made me curious about the overall distribution of IDs in slashdot discussions. It didn't take long to take what I'd learned about the Beautiful Soup screen-scraping library from writing my Twitter status backup script to get some simple information.
Here's a quick [...]

5 April 2009

NetBeans Python Plugin

NetBeans speaks Python now! In my first pass at learning Python last year, I had looked around at IDE options and noted that NetBeans didn't seem to support it yet. Eclipse probably had a Python plugin at the time, but it may have seemed too daunting to try out. I can't remember now. In [...]

18 March 2009

Python script for backing up Twitter statuses

I was looking for a way to backup my tweets (I find that I'm reluctantly giving over to calling Twitter posts by that name, but I don't feel good about it) and found this "recipe" at ActiveState's web site:
Recipe 576594: Backup/download your tweets or anyone's tweets.
It's a nice simple Python script that saves messages to [...]

29 March 2008

Python: Regex Test Function

 
More fun with Python and regular expressions. Following up on a previous post, I wanted to share a little test regex function I wrote in Python to help me as I work through the regular expression book.
I'm mostly working at the interactive prompt and had been running commands from Python re (the regex module) [...]

23 March 2008

Goals: Learning Python and Regular Expressions

I don't want to go all 7 Habits of Highly Effective People on you, but I'll say this: I think it's good to have goals and to work towards your goals.
I like this quote, which I've seen attributed to Zig Ziglar:
"Most people fail to reach their goals not because their plans are too simple or [...]

23 February 2008

Tomboy: Bulk import files with the D-Bus interface and Python

Last month I mentioned I wanted to import a bunch of notes from my old PIM into Tomboy, but expected a lot of copying and pasting busywork since I didn't know how to do a mass import. Fortunately, a real live Tomboy developer dropped by to clue me in on the D-Bus interface with [...]

6 November 2007

NautilusSvn and New Emblems

After writing last week about how I missed the Windows-only Tortoise(CVS|SVN) in GNU/Linux and sharing my simple scripts for running Subversion commands from Nautilus, I found Nautilus Svn by Jason Field, an Extension written in Python. (And available under the GPL v2.) It's very nice, and adds (among other things) a major feature that [...]