Ashton Charbonneau 76285e8d2e Add basic file reader | 3 年之前 | |
---|---|---|
.gitignore | 3 年之前 | |
README.md | 3 年之前 | |
rok-reader.py | 3 年之前 | |
rok-stat-grabber.py | 3 年之前 |
The grabber iterates through entries in the individual power rankings and takes screenshots of each profile page (main profile page, the more info page, and the more info page with kills expanded). It will also copy the username into usernames.txt
.
Some profiles cannot be clicked. These are skipped, and a screenshot is saved along with the skipped rank.
Each profile is given a timestamp that is common to the three screenshot files and the line in usernames.txt
. The timestamp can be used to associate individual accounts.
Connect to an Android device via ADB. If connecting to a physical device, I would recommend using scrcpy with the --turn-screen-off flag to help prevent the device from heating up. If using an emulator, follow instructions for that emulator to connect via ADB. Get the device serial with adb devices
.
This script uses AdbClipboard and the accompanying app to pull the clipboard containing the username. This only works until android 9. If running scrcpy, the clipboard grabs on the device are pushed to your computer, which could be annoying.
If running the script script on multiple accounts in parallel, I would recommend using different project names to avoid collisions in in the timestamp. It’s also likely prudent to overlap the rankings a bit if running in parallel.
The script terminates if it is unable to access a profile three times in a row. Could cause issues if there is a large amount of migration; I would recommend occasionally checking progress.
Open the individual rankings to either the top of the list (if starting with rank 1), or to the profile page of whatever rank you are starting with. Run with the needed command line options:
--project
(required): what folder should the scraped files be saved in?--serial
(required): serial number of the device from adb devices
.--count
(required): what rank should you stop at?--start
: what rank are you starting with? The script taps in a different spot for the first 4 ranks compared to others, and this defaults to rank 1.--verbose
: show progress output.Grab ranks 1-990 (start at top of list, or with profile of rank 1 open): python rok-stat-grabber.py -p "KVK4_Pass5" -s "SERIAL123456" -c 990 -v
Grab ranks 801-990 (start with profile of rank 801 open): python rok-stat-grabber.py -p "KVK1_MGE" -v -s "SERIAL123456" -c 990 -n 801
ROTATE
variable (have used 0 and 90 on different devices).