Sclafus

openload download chrome extension utility

Apr 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import re
  2. import random
  3. final = []
  4. filename = input("Inserisci il nome del file: ")
  5. filename = filename + '.txt'
  6.  
  7. with open(filename, "r") as f1:
  8.     for line in f1:
  9.         almost = re.sub("DOWNLOAD[.]*", "", line)
  10.         final.append(almost)
  11.  
  12. file_name = "openload" + str(random.randint(0, 10000)) + ".txt"
  13.  
  14. with open(file_name, "w") as f2:
  15.     for element in final:
  16.         print(element, file = f2)
Add Comment
Please, Sign In to add comment