main.py 639 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2023/07/11 20:26:23
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc :
  8. '''
  9. import os
  10. import sys
  11. import re
  12. import argparse
  13. import logging
  14. from fuck12306 import Crawl12306,CrawlCaptcha
  15. if __name__ == '__main__':
  16. print("---------------fuck12306-----------")
  17. crawl12306 = Crawl12306()
  18. # crawl12306.monitor()
  19. # crawl12306.get_code_pic(299)
  20. # crawl12306.get_code_pic2(10000)
  21. # 验证码识别
  22. crawlcaptcha=CrawlCaptcha()
  23. # crawlcaptcha.recornize_captcha()
  24. crawlcaptcha.gen_label()