Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Requirements:
- - Python3 installed
- - pyperclip installed (pip3 install pyperclip)
- To run:
- 1. Create a file named <file_name>.py
- 2. In the same folder that you created this folder, run the command python3 <file_name>.py
- 3. Create a file named douyin.txt.
- 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.
- 5. Paste the URLs into JD2. If it doesn't work, make sure you're only copying "v." URLs.
- 6. If it works, JD2 will ask if you want to do a deep dive on each URL, say yes.
- Script (content to paste into <file_name>.py:
- import time
- import sys
- import os
- import pyperclip
- recent_value = ""
- f = open('douyin.txt', 'a')
- while True:
- tmp_value = pyperclip.paste()
- if tmp_value != recent_value:
- recent_value = tmp_value
- f.write(recent_value + '\n' + '\n')
- print("Value changed: %s" % str(recent_value))
- time.sleep(0.1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement