Skip to content

Commit 7558814

Browse files
committed
add: 3 modules to adult/
1 parent 90f351f commit 7558814

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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)

0 commit comments

Comments
 (0)