Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- from __future__ import print_function
- import time
- import bugzilla
- import sys
- if sys.version_info[0] >= 3:
- api_key = input("Enter Bugzilla API Key: ")
- else:
- api_key = raw_input("Enter Bugzilla API Key: ")
- URL = "bugzilla.mozilla.org"
- bzapi = bugzilla.Bugzilla(URL, api_key=api_key)
- assert bzapi.logged_in
- query = bzapi.build_query(
- product="Enterprise Information Security",
- component="Vulnerability Assessment")
- query["status"] = "FIXED"
- t1 = time.time()
- bugs = bzapi.query(query)
- t2 = time.time()
- print("Found %d bugs with our query" % len(bugs))
- print("Query processing time: %s" % (t2 - t1))
Add Comment
Please, Sign In to add comment