old_contents: import sys
  import Config
  from PTTBot import PTTBot
  
  if __name__ == '__main__':
     account = sys.argv[1]
     passwd  = sys.argv[2]
  
     boards  = Config.getBoardFromFile('boards.txt')
     rules   = Config.getRuleFromFile('rules.txt')
  
     pttbot = PTTBot()
     pttbot.login(account, passwd)
  
     for board in boards:
        pttbot.goBoard(board)
        for rule in rules:
           articles = pttbot.search(rule)
  #         for article in articles:
  #            pttbot.backup(article)
  #
     pttbot.leave()
  
  
  
new_contents: import sys
  import Config
  from PTTBot import PTTBot
  
  if __name__ == '__main__':
  
     if len(sys.argv) is not 3:
        print 'Error: command should be python main.py <account> <password>'
        sys.exit(-1)
  
     account = sys.argv[1]
     passwd  = sys.argv[2]
  
     boards  = Config.getBoardFromFile('boards.txt')
     rules   = Config.getRuleFromFile('rules.txt')
  
     pttbot = PTTBot()
     pttbot.login(account, passwd)
  
     for board in boards:
        pttbot.goBoard(board)
        for rule in rules:
           articles = pttbot.search(rule)
  #         for article in articles:
  #            pttbot.backup(article)
  #
     pttbot.leave()
  
  
  
subject: Support check input arguments