Last active
January 21, 2020 00:32
-
-
Save theriley106/a163c327a2851ef6ab2a4a72247bb062 to your computer and use it in GitHub Desktop.
Robinhood Debit Card Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
import random | |
def swipe_application_drawer(): | |
os.system("adb shell input swipe 780 1725 550 50") | |
time.sleep(.5) | |
def tap(coordTuple): | |
x, y, sleepTime = coordTuple | |
os.system("adb shell input tap {} {}".format(x, y)) | |
time.sleep(sleepTime) | |
def tap_card(): | |
x = 600 + random.randint(-30, 30) | |
y = 930 + random.randint(-30, 30) | |
for i in range(1000): | |
print("CLICKING CARD -> DECREASED SPOT BY {}".format(i)) | |
tap((x, y, 0)) | |
if __name__ == '__main__': | |
time.sleep(3) | |
clicks = [ | |
(550, 1650, 1), | |
(659, 1287, 10), | |
(943, 1203, 3), | |
(373, 1746, 1) | |
] | |
for i, click in enumerate(clicks): | |
if i == 1: | |
swipe_application_drawer() | |
tap(click) | |
tap_card() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment