Advertisement
Guest User

Untitled

a guest
Sep 11th, 2023
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Requirements:
  2. - Python3 installed
  3. - pyperclip installed (pip3 install pyperclip)
  4.  
  5. To run:
  6. 1. Create a file named <file_name>.py
  7. 2. In the same folder that you created this folder, run the command python3 <file_name>.py
  8. 3. Create a file named douyin.txt.
  9. 4. The script outputs URLs that it observes on the clipboard. When you're ready to move the URLs, you can either copy the URLs from douyin.txt or from the Terminal/place you're running the script itself.
  10. 5. Paste the URLs into JD2. If it doesn't work, make sure you're only copying "v." URLs.
  11. 6. If it works, JD2 will ask if you want to do a deep dive on each URL, say yes.
  12.  
  13. Script (content to paste into <file_name>.py:
  14.  
  15. import time
  16. import sys
  17. import os
  18.  
  19. import pyperclip
  20.  
  21. recent_value = ""
  22. f = open('douyin.txt', 'a')
  23. while True:
  24. tmp_value = pyperclip.paste()
  25. if tmp_value != recent_value:
  26. recent_value = tmp_value
  27. f.write(recent_value + '\n' + '\n')
  28. print("Value changed: %s" % str(recent_value))
  29. time.sleep(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement