-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathraw_pixelscan.py
More file actions
23 lines (22 loc) · 1.13 KB
/
raw_pixelscan.py
File metadata and controls
23 lines (22 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from seleniumbase import SB
with SB(uc=True, incognito=True, test=True) as sb:
url = "https://pixelscan.net/fingerprint-check"
sb.driver.uc_open_with_reconnect(url, 7)
sb.remove_elements(".bg-bannerBg") # Remove top banner
sb.remove_elements("pxlscn-ad1") # Remove an ad banner
sb.remove_elements("pxlscn-ad2") # Remove an ad banner
sb.remove_elements("jdiv") # Remove chat widgets
not_masking_text = "You are not masking your fingerprint"
fp_selector = "pxlscn-fingerprint-masking"
sb.assert_text(not_masking_text, fp_selector, timeout=15)
no_automation_detected = "No automation framework detected"
sb.assert_text(no_automation_detected, "pxlscn-bot-detection")
consistent_selector = 'div.bg-consistentBg [alt="Good"]'
consistent_selector = 'div.bg-consistentBg [alt="Good"]'
sb.highlight(consistent_selector, loops=8, scroll=False)
sb.sleep(1)
fingerprint_masking_div = "pxlscn-fingerprint-masking div"
sb.highlight(fingerprint_masking_div, loops=9, scroll=False)
sb.sleep(1)
sb.highlight("pxlscn-bot-detection", loops=10, scroll=False)
sb.sleep(2)