Help required for Research
Keisial
keisial at gmail.com
Tue Mar 23 07:32:08 EST 2010
Nitin Mohan wrote:
> As far as I know, Bugzilla has a link at the bottom of every bug
> description which gives us an option to convert that bug desc page
> into a XML. So, going through every bug in the Bugzilla repository and
> then convert them into XML should do the job, but its too laborious.
> Thats why I wanted to ask for your suggestion whether some other way
> exists to retrieve the bugs as XML.
>
> Thanks for your reply.
>
> Nitin
Laborious?
for n in `seq 1 100`; do
wget "https://bugzilla.mindrot.org/show_bug.cgi?ctype=xml&id=$n" -O
bug_$n.xml
done
Replace 100 with the number of bugs to parse, bugzilla.mindrot.org with
the bugzilla you want to crawl.
You can speed it up reusing the same connection:
(for n in `seq 1 100`; do
echo "https://bugzilla.mindrot.org/show_bug.cgi?ctype=xml&id=$n"
done) | wget -i - -O bugs.xml
(that generates a concatenation of xmls, may work for your scripts or
may need some preprocessing)
More information about the openssh-unix-dev
mailing list