File tree Expand file tree Collapse file tree
user_scanner/user_scan/social 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+ def validate_7dach (user ):
4+ url = f"https://7dach.ru/profile/{ user } "
5+ show_url = url
6+
7+ def process (response ):
8+ if "Информация / Профиль" in response .text :
9+ return Result .taken ()
10+
11+ if "<title>Ошибка / 7dach.ru" in response .text :
12+ return Result .available ()
13+
14+ return Result .error ("Unexpected response body, report it via GitHub issues." )
15+
16+ 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+ def validate_about_me (user ):
4+ url = f"https://about.me/{ user } "
5+ show_url = url
6+
7+ def process (response ):
8+ if " | about.me" in response .text :
9+ return Result .taken ()
10+
11+ if "<title>about.me</title>" in response .text :
12+ return Result .available ()
13+
14+ return Result .error ("Unexpected response body, report it via GitHub issues." )
15+
16+ 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+ def validate_7cups (user ):
4+ url = f"https://www.7cups.com/@{ user } "
5+ show_url = url
6+
7+ def process (response ):
8+ if "Profile - 7 Cups" in response .text :
9+ return Result .taken ()
10+
11+ if "The content you're attempting to access could not be" in response .text :
12+ return Result .available ()
13+
14+ return Result .error ("Unexpected response body, report it via GitHub issues." )
15+
16+ return generic_validate (url , process , show_url = show_url )
You can’t perform that action at this time.
0 commit comments