5 """Screen scrapes jira.mit.edu. Supposedly. Doesn't actually work yet.
7 You need to have a personal certificate named cert.pem in this
8 directory to run this script. You also need the abovementioned scripts.
9 The zephyr bindings can be gotten from ebroder's GitHub repository
10 located: http://github.com/ebroder/python-zephyr/tree/master
12 SSL server CA authentication is disabled because we don't know how to
13 make curl stop complaining.
15 Current difficulty is we are causing a NullPointer exception on
16 (we think) touchstone's servers."""
18 class Browser(object):
19 def __init__(self, **kwargs):
21 self.lastResult = None
22 def _callback(self, buf):
23 self.lastResult += buf
27 c.setopt(c.WRITEFUNCTION, self._callback)
28 for k,v in self.opts.items():
29 c.setopt(getattr(c, k), v)
32 return self.lastResult
38 COOKIEJAR = "jirabot.cookie",
42 b.get("https://jira.mit.edu/jira/secure/Dashboard.jspa")
43 print b.get("https://jira.mit.edu/jira/secure/mit_login.jsp?os_destination=/secure/Dashboard.jspa")
45 #c.setopt(c.URL, "https://jira.mit.edu/jira/sr/jira.issueviews:searchrequest-rss/temp/SearchRequest.xml?&pid=10185&updated%3Aprevious=-1w&sorter/field=updated&sorter/order=DESC&tempMax=1000")
47 #d = feedparser.parse(t.contents)