<s> import twitstream <EOL> ( options , args ) = twitstream . parser . parse_args ( ) <EOL> if len ( args ) < <NUM_LIT:1> : <EOL> twitstream . parser . error ( "<STR_LIT>" ) <EOL> else : <EOL> method = args [ <NUM_LIT:0> ] <EOL> if method not in twitstream . GETMETHODS and method not in twitstream . POSTPARAMS : <EOL> raise NotImplementedError ( "<STR_LIT>" % method ) <EOL> twitstream . ensure_credentials ( options ) <EOL> stream = twitstream . twitstream ( method , options . username , options . password , twitstream . DEFAULTACTION , <EOL> defaultdata = args [ <NUM_LIT:1> : ] , debug = options . debug , engine = options . engine ) <EOL> stream . run ( ) </s>
