yclee126

save clipboard and print them

Nov 15th, 2021 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import keyboard
  2. import pyperclip as pc
  3.  
  4.  
  5. base_url = 'www.mediafire.com'
  6.  
  7. texts = []
  8. def on_press(_):
  9. text = pc.paste()
  10. texts.append(text)
  11.  
  12.  
  13. keyboard.on_release_key('`', on_press)
  14.  
  15. input()
  16. for text in texts:
  17. try:
  18. print(base_url + text.split(base_url)[1])
  19. except:
  20. print(text)
Add Comment
Please, Sign In to add comment