@verbose
def sampletoscreen_demo(limit=20):
 oauth = credsfromfile()
 client = Streamer(**oauth)
 client.register(TweetViewer(limit=limit))
 client.sample()

@ verbose def sampletoscreen_demo ( limit = 20 ) : oauth = credsfromfile ( ) client = Streamer ( ** oauth ) client . register ( TweetViewer ( limit = limit ) ) client . sample ( )
sample from the streaming api and send output to terminal .