6
from launchpadlib.credentials import Credentials
8
web_root="https://launchpad.net/"
10
creds = Credentials("tarmac")
11
url = creds.get_request_token(web_root=web_root)
13
subprocess.call(['xdg-open', url])
14
print("Once you have authenticated then press enter")
16
creds.exchange_request_token_for_access_token(web_root=web_root)
18
f = open("credentials", "wb")