tourniquet

Getting download links

May 13th, 2013
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. # Watch video here: https://www.youtube.com/watch?v=p_F3ODBiCBw
  2.  
  3. from sys import argv
  4.  
  5. script, input_file, output_file, keyword = argv
  6.  
  7. input_file = open(argv[1]).readlines()
  8. output_file = open(argv[2], 'w')
  9.  
  10.  
  11. for item in input_file:
  12.     if item.find(argv[3]) != -1:
  13.         output_file.write(item)
  14.  
  15. output_file.close()
Add Comment
Please, Sign In to add comment