I didn't see anything in the terms of service for wikipedia indicating that automated access was disallowed, but...I've been reading a lot of TOSs lately. Maybe I screwed up. It warrants further investigation.
Maybe I should check CPAN. Could be there's already some sort of Wikipedia tool on there...hm.