Guest User

Untitled

a guest
Nov 5th, 2026
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. import os
  2. import sys
  3. import requests
  4. import ctypes
  5. from selenium.webdriver.chrome.options import Options
  6.  
  7. from bcncita import CustomerProfile, DocType, Office, OperationType, Province, try_cita
  8. import bcncita.speaker
  9. bcncita.speaker = lambda: None
  10.  
  11. if __name__ == "__main__":
  12. customer = CustomerProfile(
  13. anticaptcha_api_key="...",
  14. auto_captcha=False,
  15. auto_office=True,
  16. chrome_driver_path=r"C:\CITA-BOT\cita-bot-master\chromedriver",
  17. save_artifacts=True,
  18. province=Province.MÁLAGA,
  19. operation_code=OperationType.TOMA_HUELLAS,
  20. doc_type=DocType.NIE,
  21. doc_value="Y0671800F",
  22. country="PARAGUAY",
  23. name="MARIA CECILIA MEZA COLMAN",
  24. phone="649365093",
  25. offices=[],
  26. )
  27.  
  28. options = Options()
  29. options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")
  30. bcncita.cita.chrome_options = options
  31.  
  32. def my_custom_alert(phrase):
  33. if "ALARM" in phrase:
  34. ctypes.windll.user32.MessageBoxW(0, "SLOT FOUND! Check Chrome NOW!", "CITA ALERT", 1)
  35. try:
  36. requests.post('https://textbelt.com/text', {
  37. 'phone': '+34649365093',
  38. 'message': 'CITA BOT: Appointment found in Malaga!',
  39. 'key': 'textbelt',
  40. })
  41. except:
  42. pass
  43.  
  44. import bcncita.cita
  45. bcncita.speaker.say = my_custom_alert
  46. try_cita(context=customer, cycles=200)
Add Comment
Please, Sign In to add comment