configure.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # -------- 配置部分 --------
  2. TEST_TASK = None # 测试任务,这里配置以后任务轮转函数直接使用这个任务
  3. # TEST_TASK = {
  4. # "status": "running",
  5. # "priority": 10,
  6. # "config": {
  7. # "select": "random",
  8. # "alias_email": "mariaandrews2240@gmail-app.com",
  9. # "time_filter": ["AM","PM"],
  10. # "exclude_dates": [],
  11. # "include_today": True,
  12. # "allowed_weekdays": [1,2,3,4,5],
  13. # "include_tomorrow": True
  14. # },
  15. # "user_inputs": {
  16. # "email": "mariaandrews2240@gmail-app.com",
  17. # "password": "Visafly@111",
  18. # "username": "mariaandrews2240@gmail-app.com",
  19. # "support_pta": False,
  20. # "expected_end_date": "2026-06-30",
  21. # "expected_start_date": "2026-05-01"
  22. # },
  23. # "grabbed_history": {},
  24. # "meta": None,
  25. # "id": 0,
  26. # "order_id": "ORD-20260415100806-0fdee58d",
  27. # "routing_key": "auto.slot.lon.fr.tourist",
  28. # "script_version": "latest",
  29. # "attempt_count": 0,
  30. # "notify_count": 0,
  31. # "created_at": "2000-01-01T01:00:00",
  32. # "updated_at": "2000-01-01T01:00:00",
  33. # "expire_at": "2000-01-01T01:00:00"
  34. # }
  35. TEST_ACCOUNT = None # 测试账号,这里配置以后账号轮转函数直接使用这个账号
  36. # TEST_ACCOUNT = {
  37. # "pool_name": "tls.gb.fr.sentinel",
  38. # "username": "robertolord2257@gmail-app.com",
  39. # "password": "Visafly@111",
  40. # "extra_data": {},
  41. # "status": "active",
  42. # "next_use_time": "2000-01-01T01:00:00",
  43. # "id": 0,
  44. # "created_at": "2000-01-01T01:00:00",
  45. # "updated_at": "2000-01-01T01:00:00"
  46. # }
  47. TEST_PROXY = None # 测试代理,这里配置以后ip轮转函数直接使用这个代理
  48. # TEST_PROXY = {
  49. # "pool_name": "local",
  50. # "proto": "http",
  51. # "ip": "127.0.0.1",
  52. # "port": 7890,
  53. # "username": "",
  54. # "password": "",
  55. # "id": 0
  56. # }
  57. CHROME_PATH = None # Chrome bin 的路径, 这个优先级最高,其次CHROME_BIN 的环境变量,最后系统默认值
  58. CLASH_SWITCH_NODE = False # 是否要启用Clash 轮换
  59. CLASH_API_URL = "http://127.0.0.1:9097" # Clash 本地 API
  60. CLASH_API_KEY = "esZnx8" # Clash API 密钥
  61. CLASH_GROUP_NAME = "♻️ 手动切换" # 要轮换的策略组名称