1. Dan Ross
  2. Bitbucket Issue Parser

Commits

Dan Ross  committed dde6449

now outputs issues as h1 html elements

  • Participants
  • Parent commits f3655d3
  • Branches default

Comments (0)

Files changed (1)

File bitbucket_issue_parser.py

View file
  • Ignore whitespace
 import json
+
 def parse(json_file):
+    f_out = open("/Users/danr/Desktop/test.html", "w")
     f = open(json_file).read()
     x = json.loads(f)
     for issue in x['issues']:
         if issue['status'] == 'new':
             print(issue['title'])
+            f_out.write("<h1>"+ issue['title'] + "</h1>")
+    f_out.close()
+
+parse("/Users/danr/Desktop/jsontest.json")