xync-client 0.0.78__tar.gz → 0.0.80.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xync_client-0.0.78/xync_client.egg-info → xync_client-0.0.80.dev2}/PKG-INFO +1 -1
- xync_client-0.0.80.dev2/screen.png +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Payeer/__init__.py +31 -20
- {xync_client-0.0.78 → xync_client-0.0.80.dev2/xync_client.egg-info}/PKG-INFO +1 -1
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client.egg-info/SOURCES.txt +1 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/.env.sample +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/.gitignore +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/.pre-commit-config.yaml +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/README.md +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/makefile +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/pyproject.toml +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/setup.cfg +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/TestAgent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/TestAsset.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/TestEx.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/TestOrder.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/Binance/test_binance.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/Bybit/test_bybit.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/Bybit/test_bybit_p2p.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/Gate/test_gate.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/Wallet/test_agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/Wallet/test_ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/tests/_todo_refact/_test_ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/Agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/Asset.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/Auth.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/BaseTest.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/Ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/Exception.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/InAgent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/Order.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Abc/xtype.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/binance_async.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/earn_api.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/etype/pm.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/exceptions.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/sapi.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Binance/web_c2c.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/base.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/etype/pm.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/req.mjs +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BingX/sign.js +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BitGet/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BitGet/agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BitGet/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BitGet/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/BitPapa/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/InAgent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/etype/cred.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/etype/order.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/order.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/web_earn.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/web_p2p.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Bybit/ws.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Gate/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Gate/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Gate/premarket.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Gmail/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/earn.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/etype/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/etype/cred.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/etype/pm.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/etype/test.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Htx/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/KuCoin/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/KuCoin/etype/pm.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/KuCoin/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/KuCoin/web.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Mexc/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Mexc/etype/pm.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Mexc/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Okx/etype/ad.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Okx/etype/pm.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Okx/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/.gitignore +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Alfa/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Alfa/state.json +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/MTS/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Ozon/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Payeer/.gitignore +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Sber/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Tinkoff/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Volet/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Volet/_todo_req/req.mjs +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Volet/_todo_req/req.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Volet/api.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Volet/pl.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/Pms/Yandex/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/agent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/asset.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/auth.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/ex.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/inAgent.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/order.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/pyd.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/pyro.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/TgWallet/web.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/__init__.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/loader.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client/pm_unifier.py +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client.egg-info/dependency_links.txt +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client.egg-info/requires.txt +0 -0
- {xync_client-0.0.78 → xync_client-0.0.80.dev2}/xync_client.egg-info/top_level.txt +0 -0
|
Binary file
|
|
@@ -11,7 +11,7 @@ logging.basicConfig(level=logging.INFO)
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
async def _input(page):
|
|
14
|
-
for i in input("
|
|
14
|
+
for i in input("Login: "):
|
|
15
15
|
await page.keyboard.press(i)
|
|
16
16
|
await page.wait_for_timeout(1000)
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ async def _input(page):
|
|
|
19
19
|
async def payment(page, agent, account, amount, cur):
|
|
20
20
|
await page.goto("https://payeer.com/en/account/send/")
|
|
21
21
|
fiat_accounts = await page.locator(
|
|
22
|
-
".balance-item.balance-item--green.balance-item--
|
|
22
|
+
f".balance-item.balance-item--green.balance-item--{cur.lower()}"
|
|
23
23
|
).all_text_contents()
|
|
24
24
|
if float(amount) <= float(fiat_accounts[0].replace(",", "").strip()):
|
|
25
25
|
await page.locator('input[name="param_ACCOUNT_NUMBER"]').fill(account)
|
|
@@ -38,49 +38,60 @@ async def payment(page, agent, account, amount, cur):
|
|
|
38
38
|
await page.locator(".input4").fill(agent.auth.get("master_key"))
|
|
39
39
|
time.sleep(1)
|
|
40
40
|
await page.click(".ok.button_green2")
|
|
41
|
-
time.sleep(
|
|
42
|
-
await page.
|
|
43
|
-
await page.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
time.sleep(2)
|
|
42
|
+
await page.locator(".note_txt").wait_for(state="visible")
|
|
43
|
+
if await page.locator('.note_txt:has-text("successfully completed")').count():
|
|
44
|
+
transaction = await page.locator(".note_txt").all_text_contents()
|
|
45
|
+
number_transaction = transaction[0].replace("Transaction #", "").split()[0]
|
|
46
|
+
await page.goto("https://payeer.com/ru/account/history/")
|
|
47
|
+
await page.click(f".history-id-{number_transaction} a.link")
|
|
48
|
+
time.sleep(1)
|
|
49
|
+
receipt = await page.query_selector(".ui-dialog.ui-corner-all")
|
|
50
|
+
time.sleep(1)
|
|
51
|
+
await receipt.screenshot(path="screen.png")
|
|
52
|
+
logging.info(f"Payeer sent {amount}{cur} to {account}")
|
|
53
|
+
else:
|
|
54
|
+
print("какая то ошибка")
|
|
48
55
|
else:
|
|
49
|
-
logging.error(f"Payeer {fiat_accounts[0].strip()} to {
|
|
56
|
+
logging.error(f"Payeer no have {amount}, only {fiat_accounts[0].strip()}{cur} to {account}")
|
|
50
57
|
|
|
51
58
|
|
|
52
|
-
async def main():
|
|
59
|
+
async def main(account, amount, cur):
|
|
53
60
|
_ = await init_db(TORM, True)
|
|
54
61
|
agent = await models.PmAgent.filter(pm__norm="payeer", auth__isnull=False).first()
|
|
55
|
-
async with AsyncCamoufox(os=["macos"], headless=
|
|
62
|
+
async with AsyncCamoufox(os=["macos"], headless=False) as playwright:
|
|
56
63
|
context = await playwright.new_context(storage_state=agent.state, record_video_dir="videos")
|
|
57
64
|
page = await context.new_page()
|
|
58
65
|
# await page.wait_for_timeout(15000)
|
|
59
66
|
await page.goto("https://payeer.com/en/", wait_until="domcontentloaded", timeout=60000)
|
|
60
|
-
|
|
61
67
|
try:
|
|
62
|
-
if
|
|
68
|
+
if await page.locator('.btn.btn--create:has-text("Create Account")').count():
|
|
69
|
+
agent.state = {}
|
|
63
70
|
await asyncio.sleep(1)
|
|
64
71
|
await page.click(".btn.btn--login.white-login")
|
|
65
|
-
time.sleep(
|
|
72
|
+
time.sleep(1)
|
|
66
73
|
await page.locator('input[name="email"]').fill(agent.auth.get("email"))
|
|
67
74
|
time.sleep(1)
|
|
68
75
|
await page.locator('input[name="password"]').fill(agent.auth.get("passwd"))
|
|
69
76
|
time.sleep(1)
|
|
70
77
|
await page.locator(".login-form__login-btn.step1").click()
|
|
71
|
-
time.sleep(
|
|
72
|
-
await page.locator(".login-form__login-btn.step1").
|
|
78
|
+
time.sleep(7)
|
|
79
|
+
if await page.locator(".login-form__login-btn.step1").is_visible():
|
|
80
|
+
await page.click(".login-form__login-btn.step1", timeout=7000)
|
|
73
81
|
time.sleep(1)
|
|
74
|
-
if await page.locator(
|
|
82
|
+
if await page.locator('.form-input-top:has-text("Enter the verification code")').count():
|
|
75
83
|
await _input(page)
|
|
76
84
|
await page.click(".login-form__login-btn.step2")
|
|
77
85
|
agent.state = await page.context.storage_state()
|
|
78
86
|
await agent.save()
|
|
79
87
|
time.sleep(5)
|
|
80
|
-
await payment(page, agent,
|
|
88
|
+
await payment(page, agent, account, amount, cur)
|
|
81
89
|
finally:
|
|
82
90
|
await playwright.close()
|
|
83
91
|
|
|
84
92
|
|
|
85
93
|
if __name__ == "__main__":
|
|
86
|
-
|
|
94
|
+
import sys
|
|
95
|
+
|
|
96
|
+
_, account, amount, *__ = sys.argv
|
|
97
|
+
asyncio.run(main(account, amount, __ and __[0] or "RUB"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|