apteka.py 782 B

123456789101112131415161718192021222324
  1. from db0mb3r.services.service import Service
  2. class Apteka(Service):
  3. phone_codes = [7]
  4. async def run(self):
  5. await self.post(
  6. "https://apteka.ru/_action/auth/getForm/",
  7. data={
  8. "form[NAME]": "",
  9. "form[PERSONAL_GENDER]": "",
  10. "form[PERSONAL_BIRTHDAY]": "",
  11. "form[EMAIL]": "",
  12. "form[LOGIN]": self.format(self.formatted_phone, "+* (***) ***-**-**"),
  13. "form[PASSWORD]": self.password,
  14. "get-new-password": "Получите пароль по SMS",
  15. "user_agreement": "on",
  16. "personal_data_agreement": "on",
  17. "formType": "simple",
  18. "utc_offset": "120",
  19. },
  20. )