>>> import urllib2
>>> opener = urllib2.build_opener()
>>> f = opener.open("http://bugs.kde.org")
>>> print f.read()
[...]
<h1>Page not found</h1>
<p>KDE has switched to bugzilla. Please go to the <a href="/">main page</a>
to search for your bug.</p>
[...]
>>> opener.addheaders = [("User-agent", "bzutils")]
>>> f = opener.open("http://bugs.kde.org")
>>> print f.read()
[...]
<h1>KDE Bug Tracking System</h1>
<p>This is KDE's bug tracking system which files details of wishes, bugs and crashes
reported by users and developers. Each report is given a number, and is kept on file until it is
marked as having been dealt with. For participating you need a personal account which will gain
you the ability to post reports and comments as well as voting for specific reports and observe
development. You'll need to enable cookies for this site for staying logged in.</p>
Questions:
1) Why does kde bugzilla require user-agent to work?
2) Why it doesn't return something more descriptive?
Welcome to my blog. This blog was created mainly to help track my progress in Google's Summer of Code 2007, on which I've started implementing the Bug Triage and Forward Tool for the Debian Project. Currently I use it to write what I'm doing on free software projects or whatever is in my mind when I get some time/spirit to write.
Monday, 18 June 2007
The world is full of (different) bugzillas....
... but the KDE's wins the strangeness award so far...
I dunno why.
ReplyDeleteBut it is true that bugzilla is entirely computer-readable, given that kbugbuster exists.