Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. from sys import argv
  2. from re import compile
  3.  
  4. f = open(argv[1])
  5. b = f.read()
  6. f.close()
  7.  
  8. p = compile('<RT>.*</RT>')
  9. m = p.sub('', b)
  10.  
  11. f = open(argv[1] + '_remove_rt', 'w')
  12. f.write(m)
  13. f.close()
  14.  
  15. print('[*] All RT tag were removed.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement