<s> from argparse import ArgumentParser <EOL> from snapchat_bots import SnapchatBot <EOL> class CaptureBot ( SnapchatBot ) : <EOL> def on_snap ( self , sender , snap ) : <EOL> snap . save ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> parser = ArgumentParser ( "<STR_LIT>" ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , required = True , type = str , help = "<STR_LIT>" ) <EOL> parser . add_argument ( '<STR_LIT>' , '<STR_LIT>' , required = True , type = str , help = "<STR_LIT>" ) <EOL> args = parser . parse_args ( ) <EOL> bot = CaptureBot ( args . username , args . password ) <EOL> bot . listen ( timeout = <NUM_LIT> ) </s>
