File tree Expand file tree Collapse file tree
user_scanner/user_scan/adult Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from user_scanner .core .orchestrator import generic_validate , Result
2+
3+
4+ def validate_bdsmlr (user ):
5+ user = user .replace ("." , "" )
6+ url = f"https://{ user } .bdsmlr.com"
7+ show_url = "https://bdsmlr.com"
8+
9+ def process (response ):
10+ if response .status_code == 200 and "login" in response .text :
11+ return Result .taken ()
12+
13+ if "This blog doesn't exist." in response .text :
14+ return Result .available ()
15+
16+ return Result .error ("Unexpected response body, report it via GitHub issues." )
17+
18+ return generic_validate (url , process , show_url = show_url )
Original file line number Diff line number Diff line change 1+ from user_scanner .core .orchestrator import generic_validate , Result
2+
3+
4+ def validate_bdsmsingles (user ):
5+ url = f"https://www.bdsmsingles.com/members/{ user } /"
6+ show_url = "https://www.bdsmsingles.com"
7+
8+ def process (response ):
9+ if response .status_code == 200 and "<title>Profile" in response .text :
10+ return Result .taken ()
11+
12+ if response .status_code == 302 or "BDSM Singles" in response .text :
13+ return Result .available ()
14+
15+ return Result .error ("Unexpected response body, report it via GitHub issues." )
16+
17+ return generic_validate (url , process , show_url = show_url )
Original file line number Diff line number Diff line change 1+ from user_scanner .core .orchestrator import generic_validate , Result
2+
3+
4+ def validate_bentbox (user ):
5+ url = f"https://bentbox.co/{ user } "
6+ show_url = "https://bentbox.co"
7+
8+ def process (response ):
9+ if response .status_code == 200 and "user_bar" in response .text :
10+ return Result .taken ()
11+
12+ if "user is currently not available" in response .text :
13+ return Result .available ()
14+
15+ return Result .error ("Unexpected response body, report it via GitHub issues." )
16+
17+ return generic_validate (url , process , show_url = show_url )
You can’t perform that action at this time.
0 commit comments