-
-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathhamaha.py
More file actions
17 lines (11 loc) · 633 Bytes
/
hamaha.py
File metadata and controls
17 lines (11 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from user_scanner.core.orchestrator import generic_validate, Result
def validate_hamaha(user):
url = f"https://hamaha.net/{user}"
show_url = url
def process(response):
if 'id="profile"' in response.text:
return Result.taken()
if 'content="HAMAHA Биткоин форум. Торговля на бирже - ➨ Обучение Криптовалютам, Биткоин и NYSE "' in response.text:
return Result.available()
return Result.error("Unexpected response body, report it via GitHub issues.")
return generic_validate(url, process, show_url=show_url)