# Path: medea/twitter.py
# def generateTimelineBytes(account, count=1, buf=None):
#     """Get bytes from the Twitter Timeline API"""
#     twitterUrl = createTwitterTimelineUrl(account, count, tweet_mode="extended")
#     return generateContentBytes(twitterUrl, twitterHeaders, buf=buf)


import sys
from medea.twitter import generateTimelineBytes

byteGenerator = generateTimelineBytes('realDonaldTrump')

try:
    while True:

# Path: medea/twitter.py
# def generateTimelineBytes(account, count=1, buf=None):
#     """Get bytes from the Twitter Timeline API"""
#     twitterUrl = createTwitterTimelineUrl(account, count, tweet_mode="extended")
#     return generateContentBytes(twitterUrl, twitterHeaders, buf=buf)


# Path: examples/scripts/twitterTimelineDumpContent.py
import sys
from medea.twitter import generateTimelineBytes


byteGenerator = generateTimelineBytes('realDonaldTrump')

try:
    while True:

        sys.stdout.write(chr(next(byteGenerator)))