Advertisement
Guest User

Untitled

a guest
May 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. from imgurpython import ImgurClient ## pip install imgurpython
  2. from pyautogui import press, typewrite, hotkey ##pip install pyautogui
  3. from pyperclip import copy ##pip install pyperclip
  4. import time
  5.  
  6. client_id = '384379a6d69f5b9'
  7. client_secret = '4a018fb3bde0bc2d6c02b2c1c53f97d2ace3c422'
  8. client = ImgurClient(client_id, client_secret)
  9. ##
  10. commandName = input("Command >>>")
  11. albumURL = input("URL >>>")
  12. print("Get to your station")
  13. print("Hit enter to start countdown")
  14.  
  15. base=""".acr ">imgay" {
  16. "color":14961226,
  17. "image": "supdosfag",
  18. }"""
  19.  
  20. x = input()
  21. time.sleep(4)
  22. items = client.get_album_images(albumURL.split("/")[-1])
  23. for item in items:
  24. newBase = base.replace("supdosfag",item.link).replace("imgay",commandName)
  25. copy(newBase)
  26. hotkey("ctrl","v")
  27. press("enter")
  28. time.sleep(0.6)
  29. print("Done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement