我正在尝试为Depop做一个关注/取消关注的机器人。这就是我到目前为止所得到的。
tell application "Safari"
activate
end tell
set Username to display dialog "What is your Depop username?" default
answer ""
set Username to text returned of the result
tell application "Safari"
activate
open location "https://www.depop.com/" & Username
delay 5
end tell
tell application "System Events"
tell process "Safari"
click at {350, 305} -- {from left, from top}
click at {350, 305} -- {from left, from top}
click at {1038, 407} -- {from left, from top}
click at {1038, 482} -- {from left, from top}
delay 1
end tell
end tell
我正在尝试使其按一下跟随,然后在另一个脚本中按取消跟随。我正在努力使它向下滚动以单击关注/取消关注。另外,如果有人对如何提高效率有任何想法,请告诉我。