mirror of
https://github.com/nova-r/fediplug.git
synced 2025-01-23 09:06:32 +01:00
20 lines
399 B
Text
20 lines
399 B
Text
|
#!/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)
|
||
|
|
||
|
stream('https://cybre.space')
|
||
|
|