Zhenyi,
I know that on CPANTESTERS for each dist we can get a json/rss/yaml file. But is there an existing module to parse the json/rss/yaml and provide a query interface?
Whenever I'm looking to do something along these lines, I generally start with tobyink's little modulino here:
http://www.perlmonks.org/?node_id=978606I'm guessing you could modify that to do what you're looking for, though I admit I didn't try it myself.
Luck! -- Buddy