menu.py 727 B

12345678910111213141516171819202122
  1. from db0mb3r.services.service import Service
  2. class MenuUA(Service):
  3. phone_codes = [380]
  4. async def run(self):
  5. await self.post(
  6. "https://www.menu.ua/kiev/delivery/registration/direct-registration.html",
  7. data={
  8. "user_info[fullname]": self.russian_name,
  9. "user_info[phone]": self.formatted_phone,
  10. "user_info[email]": self.email,
  11. "user_info[password]": self.password,
  12. "user_info[conf_password]": self.password,
  13. },
  14. )
  15. await self.post(
  16. "https://www.menu.ua/kiev/delivery/profile/show-verify.html",
  17. data={"phone": self.formatted_phone, "do": "phone"},
  18. )