MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / parse_accounts

Function parse_accounts

tianyi.py:115–128  ·  view source on GitHub ↗
(accounts_str: str)

Source from the content-addressed store, hash-verified

113 return json.loads(unpadded_data.decode())
114
115def parse_accounts(accounts_str: str) -> list:
116 accounts = []
117 for part in accounts_str.replace("\n", "&").replace("\r", "").split("&"):
118 part = part.strip()
119 if "#" in part:
120 phone, pwd = part.split("#", 1)
121 elif "@" in part:
122 phone, pwd = part.split("@", 1)
123 else:
124 continue
125 phone, pwd = phone.strip(), pwd.strip()
126 if phone and pwd:
127 accounts.append((phone, pwd))
128 return accounts
129
130def userLoginNormal(phone, password):
131 timestamp = datetime.datetime.now().strftime("%Y%m%d%H%M%S")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected