fediplug/stream

20 lines
390 B
Text
Raw Normal View History

2017-12-26 22:34:39 +01:00
#!/usr/bin/env python
API_BASE_URL = 'https://cybre.space'
import os
from getpass import getpass
from fediplay import register, login, stream
if not os.path.exists('clientcred.secret'):
register(API_BASE_URL)
if not os.path.exists('usercred.secret'):
email = input('Email: ')
password = getpass('Password: ')
login(API_BASE_URL, email, password)
2017-12-29 14:31:46 +01:00
stream(API_BASE_URL)
2017-12-26 22:34:39 +01:00