import curses
from html.parser import HTMLParser
from mastodon import Mastodon
class PostParser(HTMLParser):
def handle_starttag(self, tag, attrs):
print(tag)
mastodon = Mastodon(
access_token = 'd100.club_usercred.secret',
api_base_url = 'd100.club'
)
print(mastodon.timeline()[0]["content"])
def main(stdscr):
stdscr.clear()
curses.halfdelay(10)
i = 'c'
q = 0
con = True
while con:
i = stdscr.getch()
con = (i != ord('q'))
#curses.wrapper(main)