├── .gitignore ├── THS ├── trader_test │ ├── .gitignore │ ├── tmp.png │ ├── dataset │ │ ├── 01.png │ │ ├── 02.png │ │ ├── 03.png │ │ ├── 04.png │ │ ├── 05.png │ │ ├── 06.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 13.png │ │ ├── 14.png │ │ ├── 15.png │ │ ├── 16.png │ │ ├── 21.png │ │ ├── 22.png │ │ ├── 23.png │ │ ├── 24.png │ │ ├── 25.png │ │ ├── 26.png │ │ ├── 31.png │ │ ├── 32.png │ │ ├── 33.png │ │ ├── 34.png │ │ ├── 35.png │ │ ├── 36.png │ │ ├── 41.png │ │ ├── 42.png │ │ ├── 43.png │ │ ├── 44.png │ │ ├── 45.png │ │ ├── 46.png │ │ ├── 51.png │ │ ├── 52.png │ │ ├── 53.png │ │ ├── 54.png │ │ ├── 55.png │ │ ├── 56.png │ │ ├── 61.png │ │ ├── 62.png │ │ ├── 63.png │ │ ├── 64.png │ │ ├── 65.png │ │ ├── 66.png │ │ ├── 71.png │ │ ├── 72.png │ │ ├── 73.png │ │ ├── 74.png │ │ ├── 75.png │ │ ├── 76.png │ │ ├── 81.png │ │ ├── 82.png │ │ ├── 83.png │ │ ├── 84.png │ │ ├── 85.png │ │ ├── 86.png │ │ ├── 91.png │ │ ├── 92.png │ │ ├── 93.png │ │ ├── 94.png │ │ ├── 95.png │ │ └── 96.png │ ├── captcha_model.pickle │ ├── captchas │ │ ├── 02c2e5db-f53f-4546-b196-816dbe13f87b.png │ │ ├── 04b98e94-2433-4ad1-bfab-3ebd89d91966.png │ │ ├── 04f15506-1f9c-4b95-b138-5f3e5b8c698b.png │ │ ├── 069d804e-1c5f-47dd-b7d0-c99e4e752629.png │ │ ├── 09550e1c-e367-4349-afe9-2168126e4715.png │ │ ├── 0c656dab-2cd5-40e7-9216-3c4c11686ba1.png │ │ ├── 0e4fa8d5-d506-4b7e-9311-cd786087aca0.png │ │ ├── 0f78c6f6-674a-4899-9da8-a11aa3194312.png │ │ ├── 1062af0a-566a-41cc-8987-5883f926e216.png │ │ ├── 10bb5291-c5d6-4038-b38a-a185fc9cd15f.png │ │ ├── 10d01e77-3683-4e5f-8d22-ee09773c8b05.png │ │ ├── 143c7e3f-152d-4f52-8680-7e9f93d28365.png │ │ ├── 15c272a1-0b6f-44dc-82cc-6db1dfb90192.png │ │ ├── 179e5dc8-44e0-40d2-b150-6812b9c05ed5.png │ │ ├── 188ef02f-a4fd-4a06-a66d-574cf98c91d0.png │ │ ├── 19831129-14fb-4304-ace5-e88bb60a6bf5.png │ │ ├── 1b5f591e-5cc6-4919-8968-da5a9c1388a3.png │ │ ├── 1b6eba0b-98e3-46dd-afe8-995eb29b9286.png │ │ ├── 1bb81135-019e-400d-baed-5efaf2a2aecf.png │ │ ├── 1c60c157-dec2-4a6d-a38f-6fb51fed4ff6.png │ │ ├── 1c727775-3dff-496c-9d1c-2f451a902a0a.png │ │ ├── 21134b89-b0f2-48e9-ad6e-5b3ccdcc62a3.png │ │ ├── 217b35cd-4f79-4af7-bf30-405e3996b516.png │ │ ├── 22818df4-960f-41cb-9403-5fb159b88a7c.png │ │ ├── 23757f8f-91da-4bf6-96cc-dd481642f310.png │ │ ├── 24ba3595-ecbb-4360-8896-0d2f6c57dd25.png │ │ ├── 27f77448-150f-440d-b667-7c9772d3b963.png │ │ ├── 299a7279-511e-418a-a81e-55b2feb0f064.png │ │ ├── 2a19496c-04dd-4981-b6a3-e76ba17026d2.png │ │ ├── 2ad45acc-b8c9-4436-a261-6bfccbdc7085.png │ │ ├── 2aff2f4b-484f-47bd-8601-f5b7143a5d26.png │ │ ├── 2c0ccab6-ad36-46cd-8399-7c4c26b536b2.png │ │ ├── 2c7c9246-21fc-475b-a2c2-4e5958c4aca6.png │ │ ├── 2c897a09-2b7f-4601-b844-d3ab847ec501.png │ │ ├── 2ceb697a-fe01-41db-8be6-730f285067e5.png │ │ ├── 2cff6c6d-6db5-4282-98f2-b2e77a643ba8.png │ │ ├── 2e066e0f-1f43-4acb-b0f9-87fe3256c158.png │ │ ├── 2e1c5bf4-4460-4a46-8520-3ac9b7d277d0.png │ │ ├── 2fe4cbea-f2f9-4ed7-8b47-8c7da24c8350.png │ │ ├── 30802f64-b5ca-4fdb-9e44-e2e94099c0cd.png │ │ ├── 3199335a-9d33-415d-b625-16bc589450c9.png │ │ ├── 31bed309-806a-4a1c-af53-5f284df67d4c.png │ │ ├── 31cd990b-bf79-4f67-8661-6c90058806a1.png │ │ ├── 31d4d83a-b03e-45db-ab78-4b239ecf0d9b.png │ │ ├── 341f9337-ffd1-4757-bc7d-f1ebfa212021.png │ │ ├── 34355f4e-8f73-46d2-8a3c-224fa682bf3c.png │ │ ├── 36095424-5e2b-4215-8710-3f43f3757c57.png │ │ ├── 379728a1-9f78-433a-9199-ffec2b55b724.png │ │ ├── 3841a91f-d44a-482b-a44d-9b2e1305a8e0.png │ │ ├── 386c72f0-13c6-441e-af4e-24880a60031e.png │ │ ├── 3986beac-9239-4bc8-bf86-3ca48be89819.png │ │ ├── 3b3a5e2f-ebc8-4a0c-b6f6-ac53b36d6ecb.png │ │ ├── 3c022a6c-3a5f-4623-a186-4a7287b56039.png │ │ ├── 3c3acd88-1d9e-40b8-83b7-d135bdbe0423.png │ │ ├── 3ed34166-defe-4489-81e7-abb1a6601ad5.png │ │ ├── 40705a98-a31f-4a0c-91b9-36838cd2cb56.png │ │ ├── 414c4c58-2dfc-47dc-9257-7591a5bef54b.png │ │ ├── 41802c09-c51b-4fa8-952d-0bc50d480df7.png │ │ ├── 41e1b5cf-b09a-4678-8280-00badc538348.png │ │ ├── 42e5515b-c6ba-45b5-8f93-cbd68a23f2b2.png │ │ ├── 46050e2e-4a82-4f9a-ba6b-69e98ea4fb70.png │ │ ├── 47633d22-3390-4a13-a58e-15156e3d089b.png │ │ ├── 48b69d3b-ca8c-4898-bc82-90bdfc9ff781.png │ │ ├── 4a84936f-1915-46d2-8c0a-388d92539e23.png │ │ ├── 4a931fca-b952-4b24-8c13-fc433f3ee8e5.png │ │ ├── 4ac9b9d0-965e-4a84-83fe-7d2e0ad0dd9a.png │ │ ├── 4b8ba039-a2fb-48ce-904a-f51eaa2b622a.png │ │ ├── 4f385bab-3540-4e46-85b6-021b53170089.png │ │ ├── 5035bf3f-2e03-4646-af94-ee19a0a1d4dd.png │ │ ├── 5091dd5c-c371-4bc4-89f0-df1777496d0f.png │ │ ├── 50eea3a9-2c80-4d03-a058-004145b45e43.png │ │ ├── 5122afd4-fa1c-4c3e-a90d-7aabafa391fc.png │ │ ├── 5358bfff-0756-4015-9a51-949a13047545.png │ │ ├── 54324555-c16f-4916-9f90-eaf233fc1030.png │ │ ├── 54c5ee27-70b4-4a7d-b719-d17b38288e94.png │ │ ├── 54f42ca5-3888-454c-8cb5-d14511936eac.png │ │ ├── 564731a8-4fbe-43ca-956b-9eeea41b1013.png │ │ ├── 573281b9-e21f-4fd9-a7b1-d316418d5061.png │ │ ├── 57a3a502-a749-4932-bdb5-9db986ef5470.png │ │ ├── 58f9cef7-6bfc-4572-8b4b-f7601d62c728.png │ │ ├── 59784a65-30e9-415b-87cc-71c7e8b46e8a.png │ │ ├── 59bac551-0064-449c-99af-cd5ceadc9a58.png │ │ ├── 5d867175-f6a0-4aef-b92e-1e3d503e9272.png │ │ ├── 5fe660ff-c595-4e54-92ce-e0fffefde112.png │ │ ├── 60839c93-a17b-4ee1-8a62-c673faf31830.png │ │ ├── 6614a0db-6ebf-493e-b1d6-d825715ad768.png │ │ ├── 67a9c125-0cf6-48fb-a35e-c198c1f832b7.png │ │ ├── 687cc6ec-243d-4123-b9db-e754cedfbac8.png │ │ ├── 69a307c7-3670-4c71-a31c-35b74a7821db.png │ │ ├── 6bdc4d3d-61be-43b3-a161-0a84c7cdddd3.png │ │ ├── 6d3252b8-d2bd-414b-b697-1d518e2f82f2.png │ │ ├── 6daecad0-e95a-49e8-8a91-c5d3a2dce2fe.png │ │ ├── 6dec186c-e9bd-4f5a-a02f-0215ccd6f4f1.png │ │ ├── 6e59d757-d1e7-49bd-b05b-ae6eee1348c0.png │ │ ├── 6f8e1a53-c5f5-4bda-9cdd-b45ab291b25d.png │ │ ├── 6fb2ee72-a4db-4b77-b3a6-543fee4bc405.png │ │ ├── 6fe9a6d5-ddcc-4426-bef3-35bffc583a64.png │ │ ├── 6feccd77-6cbe-4327-967d-f34798fef85e.png │ │ ├── 705941fc-8d12-4bfd-b106-417b54337be6.png │ │ ├── 714d687f-e5f1-4ad0-a455-c8f0e652e56d.png │ │ ├── 7176e383-6243-4226-9389-0a44c8904819.png │ │ ├── 71cb76a7-8dcd-4b37-9297-2fbb076b32c2.png │ │ ├── 72d91583-e441-4ff3-81f0-d825229eb46a.png │ │ ├── 7432b125-0fae-4f3b-8546-b44ac271c608.png │ │ ├── 74a56d83-b0ed-4efe-8517-bd9b585d2f94.png │ │ ├── 74d53327-ecd6-44d1-a88c-7aea42b3fbc0.png │ │ ├── 75ed4f5d-59ed-452c-91a6-dbed53ca240c.png │ │ ├── 76170bb5-d74a-44fc-bb0e-6a90b1a5fa12.png │ │ ├── 78f500cf-676b-497a-b08d-65e54f11408a.png │ │ ├── 7b131b83-d9d0-4415-968b-535be1f3f377.png │ │ ├── 7c284a2f-c796-4f37-b7ef-e36118c2ed76.png │ │ ├── 7ce3c7ad-58af-47bd-b958-e8dc5171e699.png │ │ ├── 7d43e738-6663-431b-8ea5-d4e395ffc9b1.png │ │ ├── 7db51d33-fe61-4839-9a9f-1fb3c2f685b9.png │ │ ├── 8077201e-4196-4b7c-aba4-f90a7d1c7d6b.png │ │ ├── 807bcabc-e906-42d8-80d8-cc28aaab7f5b.png │ │ ├── 8343d1cc-00a6-441b-ac7e-d46bb27f1ca1.png │ │ ├── 839e2636-e8d7-4434-b3ce-483c0868cfa4.png │ │ ├── 850426f4-64ae-4855-968a-2f59cf10b00c.png │ │ ├── 8674c239-0f4c-410d-9f7e-cd362f30103c.png │ │ ├── 86d8732b-a3ec-4917-be33-e2f0b4e054f5.png │ │ ├── 87cf0189-8c43-41af-86e5-acd133bb6f98.png │ │ ├── 8861e9a5-c402-4f16-9121-b1644b868e6e.png │ │ ├── 889b14df-3a93-4ca7-bf71-b141c6f52c86.png │ │ ├── 892121b3-1676-4d37-b279-71e90f10be08.png │ │ ├── 8b99b94f-3e75-4e4a-bdca-f598eb261628.png │ │ ├── 8d83ccaa-7c57-4a72-adaa-0c861e99b231.png │ │ ├── 8d989714-7958-4a71-948f-e109118f8f73.png │ │ ├── 8ec76716-96fa-4acc-978d-2d4e22b4308d.png │ │ ├── 9124c060-eb22-4d90-9176-6fc9d47f280b.png │ │ ├── 9269483e-7c06-46f5-a765-c01c57eafb38.png │ │ ├── 9300d634-8aaf-4636-a503-fbbf40de783f.png │ │ ├── 9316b680-2187-4ff4-8d48-e3b28106ccbd.png │ │ ├── 93e4a334-7ee4-42c1-9f30-2d1b8a9e76e1.png │ │ ├── 9542527e-ac2f-414b-9611-1a04bf6fb9a9.png │ │ ├── 956eb266-c572-45ef-9874-bc7ef8cb9285.png │ │ ├── 97cd30ac-4b05-4a1c-97bd-a5bc2bf72d7d.png │ │ ├── 9a8213d7-b6c2-43c6-90a6-0f1219f007ba.png │ │ ├── 9acc19bf-931b-4216-a52f-be3d25f2fa48.png │ │ ├── 9bb2bc32-00d6-4e50-a31f-2ab7e8f1be9e.png │ │ ├── 9c90bad6-efd1-437c-af8d-37ad81f2d3f8.png │ │ ├── 9e4ad826-ea02-4585-aebf-6710ffc4c54b.png │ │ ├── 9e69ff9e-7b87-47b5-8628-54b34ee798dc.png │ │ ├── 9f3b0681-0fc2-4ae3-ae99-446b572c7120.png │ │ ├── 9f9bca68-9550-453c-931e-95905a2280b2.png │ │ ├── 9fcfa5b9-d949-4599-bb11-5a88ba826fb1.png │ │ ├── 9feffccd-ac18-4406-840f-62d77f545d10.png │ │ ├── a0ba0e23-0e45-4817-a4df-63c7b93c9c1b.png │ │ ├── a2803d37-3b94-4270-9e42-89a68c31c033.png │ │ ├── a365d640-4786-49ef-b8c3-8eaa0146c7dc.png │ │ ├── a5ddc34f-8a20-49e1-bf79-1b55a56e36e7.png │ │ ├── a68009e9-9fb6-4acc-8e96-c5b019c3db30.png │ │ ├── a98963ca-2fb6-4850-8f30-4ce82fbf70dd.png │ │ ├── a9b89297-3985-4d0c-b44b-ecd1075569a1.png │ │ ├── a9d215e7-674e-48d8-8ac4-9455ed3adfc6.png │ │ ├── aae7c9e5-c1a7-4182-870c-adfb1d73db03.png │ │ ├── ad54d894-7701-4d93-af2f-95495020bdd4.png │ │ ├── ae0139e6-522b-41ef-a81a-fc9e13ffb942.png │ │ ├── ae25aa9d-9015-4601-90e2-4b7bbe5722d6.png │ │ ├── afe3584f-954c-482c-92ac-77a8434e090b.png │ │ ├── b018ed0e-41a8-46cf-b9c2-aa9e268537ef.png │ │ ├── b05d443d-a921-4f4f-9ed2-f201e600d204.png │ │ ├── b0d35670-e942-4a63-b0d9-fdbfbde98b4e.png │ │ ├── b140f1e4-9b96-4ad5-8298-46add29e09bf.png │ │ ├── b195573c-c15e-4c9c-95ba-1c0fc53f107b.png │ │ ├── b1b5215b-5495-4831-a291-541a950e7433.png │ │ ├── b1bc44ad-67e6-4c70-b98e-e913049ccc5c.png │ │ ├── b3b91b79-6273-4b68-b526-f772dc21c051.png │ │ ├── b7d7b27e-4637-4602-8ff2-18e629dd92af.png │ │ ├── b8010c06-7723-45f2-b0f0-d1840b6f09e2.png │ │ ├── b8ca6c0f-27e3-4275-9080-ce09bc45ae3e.png │ │ ├── baada427-7246-4774-bb55-f1632ea1c97a.png │ │ ├── bc72abcc-4afa-4507-a266-fbc1431bf35a.png │ │ ├── bca9e126-3de6-4122-84cc-1f4a9796efca.png │ │ ├── bd083fad-2ffe-4bf1-8877-4b0475666357.png │ │ ├── bdc4b964-1395-4ea9-827d-7390bb1d41e4.png │ │ ├── be15767b-f7be-4c81-9251-ad9f28c6974c.png │ │ ├── bed1d18b-43ba-47f6-804e-69454b1274dc.png │ │ ├── c06c0bef-84b3-4416-b3af-8b6d91d8b774.png │ │ ├── c07d70dd-9e33-407c-aa3a-8055a1dbcbb0.png │ │ ├── c463a508-7587-4d3e-8898-5ed02ff60165.png │ │ ├── c4deef83-4035-4aa0-8bbe-cf51794d4b2c.png │ │ ├── c5ad1da4-259f-44d7-b959-c2fb7cb421bc.png │ │ ├── c5b9e993-72c6-4d98-8507-f4d8ef52350b.png │ │ ├── c699f40c-d5d5-4678-96b0-6462db64b09d.png │ │ ├── c77ecb3d-3201-4e17-b114-4b5389cfd941.png │ │ ├── c88fcae6-1502-4be5-b7b7-ca0c3e31dade.png │ │ ├── c8f9a3fb-88f3-452b-9bf4-82e4b76d1f6a.png │ │ ├── c97d0285-7e8e-4099-8d04-cda1b7385ddb.png │ │ ├── c9d23c9f-484f-4377-91d4-ea9929170a97.png │ │ ├── ca0d1178-73e4-4479-bf7f-c87bb27c6814.png │ │ ├── ca5e3310-b96e-4530-961c-78d9738d8de4.png │ │ ├── cadf27f0-8fe3-48ef-9763-1e67d787df9a.png │ │ ├── cb3d1208-e596-4778-90c4-7950cc6b98b7.png │ │ ├── cc3efe3b-0fe1-4c6c-992b-bb376e0cd270.png │ │ ├── cc88793c-788d-4063-8d63-3995473ef3fa.png │ │ ├── cc96a094-263c-4497-b506-4921ac18fa5b.png │ │ ├── ccc283e4-0534-4348-9b26-53e112d34fca.png │ │ ├── ccea8ddb-b0e0-4c37-a04b-bb98d138aa9d.png │ │ ├── cd0e503a-3f79-4950-a4e8-981efa4f675f.png │ │ ├── d1d0203a-10a3-4ab0-ae3d-36fbff619564.png │ │ ├── d2f0b433-56ce-47e1-988f-57e0f91a9f1d.png │ │ ├── d3332fa1-ceb3-44b0-abb4-caaca124d874.png │ │ ├── d486dd5f-20e7-49de-a80f-e18581d62f1b.png │ │ ├── d615ee3e-b49f-4444-a801-ca7ae8ff0191.png │ │ ├── d73d8fd4-81ff-44ef-b183-556b78d6dead.png │ │ ├── d7e0cc91-87ef-45b7-aab6-52b5118b1c66.png │ │ ├── d80fe7e2-dfb5-4131-afe1-fca60121f00c.png │ │ ├── d8131441-3144-4612-95c7-b29156b42780.png │ │ ├── d819e301-47bc-44b3-87a8-165dfbbea829.png │ │ ├── d856fa3f-dba1-41fc-bf84-1f7286e1340d.png │ │ ├── d8c4dff0-e29b-46d8-ad82-6c8ef3e33298.png │ │ ├── d90ec4ae-78f0-4997-a1cd-a5f1043e6000.png │ │ ├── d99f54ce-93c9-4fdf-99ce-4d2d12a08fc8.png │ │ ├── dc5aadd9-161f-4b9b-ba7c-9728fbdb8579.png │ │ ├── dc5ec950-6657-4339-be86-5290844f7f23.png │ │ ├── dcd2b4b8-6fdb-4433-ae49-b50fd9a5b30e.png │ │ ├── e01f0f8e-1fd4-4007-95f5-14b4811e4fb5.png │ │ ├── e071178a-8e1d-44b4-9d25-0f025c6cb51a.png │ │ ├── e1f0d1f8-8524-44fc-ba7a-1ba3e21545d0.png │ │ ├── e305fa40-b425-41ad-8d0c-b8824e17738b.png │ │ ├── e684e068-6be2-41c9-abf9-ac034839338d.png │ │ ├── e6cf9d43-ea8b-41cc-a385-4141d311cefa.png │ │ ├── e7a17bc8-8e1a-43e1-b694-fbcdfbb0f2c2.png │ │ ├── eb063ae1-c186-474d-b30d-be1cd4f5f405.png │ │ ├── eb7ac204-de56-49f7-bb91-312014afa44a.png │ │ ├── eed52c86-d487-48e4-bffe-9521f8184363.png │ │ ├── ef3f0c73-5d05-4577-a8a3-b93fa646ce5a.png │ │ ├── ef6b679c-125f-463b-b5f4-3cf2f0f85e6d.png │ │ ├── f056dec2-4801-4a70-94e6-d0f19cae52b3.png │ │ ├── f0f980cd-8a0e-4a3f-a8e8-4d4bebdf5980.png │ │ ├── f7e0e2e3-c97f-4520-b673-5043751a55cb.png │ │ ├── f80d38e6-5035-4f6a-afa2-c3c65b9feb9a.png │ │ ├── f95357ce-8c94-4039-85ae-8d93d1a7bc5a.png │ │ ├── fa68bdb9-1cbb-4aad-8098-12cee15536ed.png │ │ ├── fafc9429-1797-45b8-9eff-91180e052825.png │ │ ├── fb1a9082-9c14-409e-a4a0-d26aabb5170f.png │ │ └── ff3e1928-6be9-4007-8f8d-94cb6b35b885.png │ ├── captcha_recognize.py │ ├── create_captcha_dataset.ipynb │ ├── captcha_break.ipynb │ └── test_connection.ipynb ├── tmp.png ├── const.py ├── captcha_recognize.py └── THSTrader.py ├── tmp.png ├── requirements.txt ├── test.py ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .spyproject 2 | __pycache__ 3 | -------------------------------------------------------------------------------- /THS/trader_test/.gitignore: -------------------------------------------------------------------------------- 1 | .ipynb_checkpoints/ 2 | __pycache__/ -------------------------------------------------------------------------------- /tmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/tmp.png -------------------------------------------------------------------------------- /THS/tmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/tmp.png -------------------------------------------------------------------------------- /THS/trader_test/tmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/tmp.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/01.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/02.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/03.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/04.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/05.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/06.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/11.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/12.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/13.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/14.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/15.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/16.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/21.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/22.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/23.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/24.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/25.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/26.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/31.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/32.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/33.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/34.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/35.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/36.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/41.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/42.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/43.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/44.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/45.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/46.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/51.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/52.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/53.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/54.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/55.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/56.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/61.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/62.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/63.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/64.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/65.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/66.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/71.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/72.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/73.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/74.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/75.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/76.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/81.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/81.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/82.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/83.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/83.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/84.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/84.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/85.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/86.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/91.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/91.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/92.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/92.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/93.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/93.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/94.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/95.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/95.png -------------------------------------------------------------------------------- /THS/trader_test/dataset/96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/dataset/96.png -------------------------------------------------------------------------------- /THS/trader_test/captcha_model.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captcha_model.pickle -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pywinauto==0.6.4 2 | numpy==1.14.3 3 | pandas==0.23.0 4 | scikit-learn==0.20.2 5 | pillow==8.2.0 6 | scipy==1.1.0 7 | pytesseract==0.2.6 -------------------------------------------------------------------------------- /THS/trader_test/captchas/02c2e5db-f53f-4546-b196-816dbe13f87b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/02c2e5db-f53f-4546-b196-816dbe13f87b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/04b98e94-2433-4ad1-bfab-3ebd89d91966.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/04b98e94-2433-4ad1-bfab-3ebd89d91966.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/04f15506-1f9c-4b95-b138-5f3e5b8c698b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/04f15506-1f9c-4b95-b138-5f3e5b8c698b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/069d804e-1c5f-47dd-b7d0-c99e4e752629.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/069d804e-1c5f-47dd-b7d0-c99e4e752629.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/09550e1c-e367-4349-afe9-2168126e4715.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/09550e1c-e367-4349-afe9-2168126e4715.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/0c656dab-2cd5-40e7-9216-3c4c11686ba1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/0c656dab-2cd5-40e7-9216-3c4c11686ba1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/0e4fa8d5-d506-4b7e-9311-cd786087aca0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/0e4fa8d5-d506-4b7e-9311-cd786087aca0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/0f78c6f6-674a-4899-9da8-a11aa3194312.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/0f78c6f6-674a-4899-9da8-a11aa3194312.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/1062af0a-566a-41cc-8987-5883f926e216.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/1062af0a-566a-41cc-8987-5883f926e216.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/10bb5291-c5d6-4038-b38a-a185fc9cd15f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/10bb5291-c5d6-4038-b38a-a185fc9cd15f.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/10d01e77-3683-4e5f-8d22-ee09773c8b05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/10d01e77-3683-4e5f-8d22-ee09773c8b05.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/143c7e3f-152d-4f52-8680-7e9f93d28365.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/143c7e3f-152d-4f52-8680-7e9f93d28365.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/15c272a1-0b6f-44dc-82cc-6db1dfb90192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/15c272a1-0b6f-44dc-82cc-6db1dfb90192.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/179e5dc8-44e0-40d2-b150-6812b9c05ed5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/179e5dc8-44e0-40d2-b150-6812b9c05ed5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/188ef02f-a4fd-4a06-a66d-574cf98c91d0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/188ef02f-a4fd-4a06-a66d-574cf98c91d0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/19831129-14fb-4304-ace5-e88bb60a6bf5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/19831129-14fb-4304-ace5-e88bb60a6bf5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/1b5f591e-5cc6-4919-8968-da5a9c1388a3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/1b5f591e-5cc6-4919-8968-da5a9c1388a3.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/1b6eba0b-98e3-46dd-afe8-995eb29b9286.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/1b6eba0b-98e3-46dd-afe8-995eb29b9286.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/1bb81135-019e-400d-baed-5efaf2a2aecf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/1bb81135-019e-400d-baed-5efaf2a2aecf.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/1c60c157-dec2-4a6d-a38f-6fb51fed4ff6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/1c60c157-dec2-4a6d-a38f-6fb51fed4ff6.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/1c727775-3dff-496c-9d1c-2f451a902a0a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/1c727775-3dff-496c-9d1c-2f451a902a0a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/21134b89-b0f2-48e9-ad6e-5b3ccdcc62a3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/21134b89-b0f2-48e9-ad6e-5b3ccdcc62a3.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/217b35cd-4f79-4af7-bf30-405e3996b516.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/217b35cd-4f79-4af7-bf30-405e3996b516.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/22818df4-960f-41cb-9403-5fb159b88a7c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/22818df4-960f-41cb-9403-5fb159b88a7c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/23757f8f-91da-4bf6-96cc-dd481642f310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/23757f8f-91da-4bf6-96cc-dd481642f310.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/24ba3595-ecbb-4360-8896-0d2f6c57dd25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/24ba3595-ecbb-4360-8896-0d2f6c57dd25.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/27f77448-150f-440d-b667-7c9772d3b963.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/27f77448-150f-440d-b667-7c9772d3b963.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/299a7279-511e-418a-a81e-55b2feb0f064.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/299a7279-511e-418a-a81e-55b2feb0f064.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2a19496c-04dd-4981-b6a3-e76ba17026d2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2a19496c-04dd-4981-b6a3-e76ba17026d2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2ad45acc-b8c9-4436-a261-6bfccbdc7085.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2ad45acc-b8c9-4436-a261-6bfccbdc7085.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2aff2f4b-484f-47bd-8601-f5b7143a5d26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2aff2f4b-484f-47bd-8601-f5b7143a5d26.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2c0ccab6-ad36-46cd-8399-7c4c26b536b2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2c0ccab6-ad36-46cd-8399-7c4c26b536b2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2c7c9246-21fc-475b-a2c2-4e5958c4aca6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2c7c9246-21fc-475b-a2c2-4e5958c4aca6.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2c897a09-2b7f-4601-b844-d3ab847ec501.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2c897a09-2b7f-4601-b844-d3ab847ec501.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2ceb697a-fe01-41db-8be6-730f285067e5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2ceb697a-fe01-41db-8be6-730f285067e5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2cff6c6d-6db5-4282-98f2-b2e77a643ba8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2cff6c6d-6db5-4282-98f2-b2e77a643ba8.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2e066e0f-1f43-4acb-b0f9-87fe3256c158.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2e066e0f-1f43-4acb-b0f9-87fe3256c158.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2e1c5bf4-4460-4a46-8520-3ac9b7d277d0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2e1c5bf4-4460-4a46-8520-3ac9b7d277d0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/2fe4cbea-f2f9-4ed7-8b47-8c7da24c8350.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/2fe4cbea-f2f9-4ed7-8b47-8c7da24c8350.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/30802f64-b5ca-4fdb-9e44-e2e94099c0cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/30802f64-b5ca-4fdb-9e44-e2e94099c0cd.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3199335a-9d33-415d-b625-16bc589450c9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3199335a-9d33-415d-b625-16bc589450c9.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/31bed309-806a-4a1c-af53-5f284df67d4c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/31bed309-806a-4a1c-af53-5f284df67d4c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/31cd990b-bf79-4f67-8661-6c90058806a1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/31cd990b-bf79-4f67-8661-6c90058806a1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/31d4d83a-b03e-45db-ab78-4b239ecf0d9b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/31d4d83a-b03e-45db-ab78-4b239ecf0d9b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/341f9337-ffd1-4757-bc7d-f1ebfa212021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/341f9337-ffd1-4757-bc7d-f1ebfa212021.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/34355f4e-8f73-46d2-8a3c-224fa682bf3c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/34355f4e-8f73-46d2-8a3c-224fa682bf3c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/36095424-5e2b-4215-8710-3f43f3757c57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/36095424-5e2b-4215-8710-3f43f3757c57.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/379728a1-9f78-433a-9199-ffec2b55b724.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/379728a1-9f78-433a-9199-ffec2b55b724.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3841a91f-d44a-482b-a44d-9b2e1305a8e0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3841a91f-d44a-482b-a44d-9b2e1305a8e0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/386c72f0-13c6-441e-af4e-24880a60031e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/386c72f0-13c6-441e-af4e-24880a60031e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3986beac-9239-4bc8-bf86-3ca48be89819.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3986beac-9239-4bc8-bf86-3ca48be89819.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3b3a5e2f-ebc8-4a0c-b6f6-ac53b36d6ecb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3b3a5e2f-ebc8-4a0c-b6f6-ac53b36d6ecb.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3c022a6c-3a5f-4623-a186-4a7287b56039.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3c022a6c-3a5f-4623-a186-4a7287b56039.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3c3acd88-1d9e-40b8-83b7-d135bdbe0423.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3c3acd88-1d9e-40b8-83b7-d135bdbe0423.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/3ed34166-defe-4489-81e7-abb1a6601ad5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/3ed34166-defe-4489-81e7-abb1a6601ad5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/40705a98-a31f-4a0c-91b9-36838cd2cb56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/40705a98-a31f-4a0c-91b9-36838cd2cb56.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/414c4c58-2dfc-47dc-9257-7591a5bef54b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/414c4c58-2dfc-47dc-9257-7591a5bef54b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/41802c09-c51b-4fa8-952d-0bc50d480df7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/41802c09-c51b-4fa8-952d-0bc50d480df7.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/41e1b5cf-b09a-4678-8280-00badc538348.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/41e1b5cf-b09a-4678-8280-00badc538348.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/42e5515b-c6ba-45b5-8f93-cbd68a23f2b2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/42e5515b-c6ba-45b5-8f93-cbd68a23f2b2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/46050e2e-4a82-4f9a-ba6b-69e98ea4fb70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/46050e2e-4a82-4f9a-ba6b-69e98ea4fb70.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/47633d22-3390-4a13-a58e-15156e3d089b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/47633d22-3390-4a13-a58e-15156e3d089b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/48b69d3b-ca8c-4898-bc82-90bdfc9ff781.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/48b69d3b-ca8c-4898-bc82-90bdfc9ff781.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/4a84936f-1915-46d2-8c0a-388d92539e23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/4a84936f-1915-46d2-8c0a-388d92539e23.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/4a931fca-b952-4b24-8c13-fc433f3ee8e5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/4a931fca-b952-4b24-8c13-fc433f3ee8e5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/4ac9b9d0-965e-4a84-83fe-7d2e0ad0dd9a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/4ac9b9d0-965e-4a84-83fe-7d2e0ad0dd9a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/4b8ba039-a2fb-48ce-904a-f51eaa2b622a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/4b8ba039-a2fb-48ce-904a-f51eaa2b622a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/4f385bab-3540-4e46-85b6-021b53170089.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/4f385bab-3540-4e46-85b6-021b53170089.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/5035bf3f-2e03-4646-af94-ee19a0a1d4dd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/5035bf3f-2e03-4646-af94-ee19a0a1d4dd.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/5091dd5c-c371-4bc4-89f0-df1777496d0f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/5091dd5c-c371-4bc4-89f0-df1777496d0f.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/50eea3a9-2c80-4d03-a058-004145b45e43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/50eea3a9-2c80-4d03-a058-004145b45e43.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/5122afd4-fa1c-4c3e-a90d-7aabafa391fc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/5122afd4-fa1c-4c3e-a90d-7aabafa391fc.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/5358bfff-0756-4015-9a51-949a13047545.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/5358bfff-0756-4015-9a51-949a13047545.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/54324555-c16f-4916-9f90-eaf233fc1030.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/54324555-c16f-4916-9f90-eaf233fc1030.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/54c5ee27-70b4-4a7d-b719-d17b38288e94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/54c5ee27-70b4-4a7d-b719-d17b38288e94.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/54f42ca5-3888-454c-8cb5-d14511936eac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/54f42ca5-3888-454c-8cb5-d14511936eac.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/564731a8-4fbe-43ca-956b-9eeea41b1013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/564731a8-4fbe-43ca-956b-9eeea41b1013.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/573281b9-e21f-4fd9-a7b1-d316418d5061.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/573281b9-e21f-4fd9-a7b1-d316418d5061.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/57a3a502-a749-4932-bdb5-9db986ef5470.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/57a3a502-a749-4932-bdb5-9db986ef5470.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/58f9cef7-6bfc-4572-8b4b-f7601d62c728.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/58f9cef7-6bfc-4572-8b4b-f7601d62c728.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/59784a65-30e9-415b-87cc-71c7e8b46e8a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/59784a65-30e9-415b-87cc-71c7e8b46e8a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/59bac551-0064-449c-99af-cd5ceadc9a58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/59bac551-0064-449c-99af-cd5ceadc9a58.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/5d867175-f6a0-4aef-b92e-1e3d503e9272.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/5d867175-f6a0-4aef-b92e-1e3d503e9272.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/5fe660ff-c595-4e54-92ce-e0fffefde112.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/5fe660ff-c595-4e54-92ce-e0fffefde112.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/60839c93-a17b-4ee1-8a62-c673faf31830.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/60839c93-a17b-4ee1-8a62-c673faf31830.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6614a0db-6ebf-493e-b1d6-d825715ad768.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6614a0db-6ebf-493e-b1d6-d825715ad768.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/67a9c125-0cf6-48fb-a35e-c198c1f832b7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/67a9c125-0cf6-48fb-a35e-c198c1f832b7.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/687cc6ec-243d-4123-b9db-e754cedfbac8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/687cc6ec-243d-4123-b9db-e754cedfbac8.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/69a307c7-3670-4c71-a31c-35b74a7821db.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/69a307c7-3670-4c71-a31c-35b74a7821db.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6bdc4d3d-61be-43b3-a161-0a84c7cdddd3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6bdc4d3d-61be-43b3-a161-0a84c7cdddd3.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6d3252b8-d2bd-414b-b697-1d518e2f82f2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6d3252b8-d2bd-414b-b697-1d518e2f82f2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6daecad0-e95a-49e8-8a91-c5d3a2dce2fe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6daecad0-e95a-49e8-8a91-c5d3a2dce2fe.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6dec186c-e9bd-4f5a-a02f-0215ccd6f4f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6dec186c-e9bd-4f5a-a02f-0215ccd6f4f1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6e59d757-d1e7-49bd-b05b-ae6eee1348c0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6e59d757-d1e7-49bd-b05b-ae6eee1348c0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6f8e1a53-c5f5-4bda-9cdd-b45ab291b25d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6f8e1a53-c5f5-4bda-9cdd-b45ab291b25d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6fb2ee72-a4db-4b77-b3a6-543fee4bc405.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6fb2ee72-a4db-4b77-b3a6-543fee4bc405.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6fe9a6d5-ddcc-4426-bef3-35bffc583a64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6fe9a6d5-ddcc-4426-bef3-35bffc583a64.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/6feccd77-6cbe-4327-967d-f34798fef85e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/6feccd77-6cbe-4327-967d-f34798fef85e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/705941fc-8d12-4bfd-b106-417b54337be6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/705941fc-8d12-4bfd-b106-417b54337be6.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/714d687f-e5f1-4ad0-a455-c8f0e652e56d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/714d687f-e5f1-4ad0-a455-c8f0e652e56d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7176e383-6243-4226-9389-0a44c8904819.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7176e383-6243-4226-9389-0a44c8904819.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/71cb76a7-8dcd-4b37-9297-2fbb076b32c2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/71cb76a7-8dcd-4b37-9297-2fbb076b32c2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/72d91583-e441-4ff3-81f0-d825229eb46a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/72d91583-e441-4ff3-81f0-d825229eb46a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7432b125-0fae-4f3b-8546-b44ac271c608.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7432b125-0fae-4f3b-8546-b44ac271c608.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/74a56d83-b0ed-4efe-8517-bd9b585d2f94.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/74a56d83-b0ed-4efe-8517-bd9b585d2f94.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/74d53327-ecd6-44d1-a88c-7aea42b3fbc0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/74d53327-ecd6-44d1-a88c-7aea42b3fbc0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/75ed4f5d-59ed-452c-91a6-dbed53ca240c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/75ed4f5d-59ed-452c-91a6-dbed53ca240c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/76170bb5-d74a-44fc-bb0e-6a90b1a5fa12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/76170bb5-d74a-44fc-bb0e-6a90b1a5fa12.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/78f500cf-676b-497a-b08d-65e54f11408a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/78f500cf-676b-497a-b08d-65e54f11408a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7b131b83-d9d0-4415-968b-535be1f3f377.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7b131b83-d9d0-4415-968b-535be1f3f377.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7c284a2f-c796-4f37-b7ef-e36118c2ed76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7c284a2f-c796-4f37-b7ef-e36118c2ed76.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7ce3c7ad-58af-47bd-b958-e8dc5171e699.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7ce3c7ad-58af-47bd-b958-e8dc5171e699.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7d43e738-6663-431b-8ea5-d4e395ffc9b1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7d43e738-6663-431b-8ea5-d4e395ffc9b1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/7db51d33-fe61-4839-9a9f-1fb3c2f685b9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/7db51d33-fe61-4839-9a9f-1fb3c2f685b9.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8077201e-4196-4b7c-aba4-f90a7d1c7d6b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8077201e-4196-4b7c-aba4-f90a7d1c7d6b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/807bcabc-e906-42d8-80d8-cc28aaab7f5b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/807bcabc-e906-42d8-80d8-cc28aaab7f5b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8343d1cc-00a6-441b-ac7e-d46bb27f1ca1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8343d1cc-00a6-441b-ac7e-d46bb27f1ca1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/839e2636-e8d7-4434-b3ce-483c0868cfa4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/839e2636-e8d7-4434-b3ce-483c0868cfa4.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/850426f4-64ae-4855-968a-2f59cf10b00c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/850426f4-64ae-4855-968a-2f59cf10b00c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8674c239-0f4c-410d-9f7e-cd362f30103c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8674c239-0f4c-410d-9f7e-cd362f30103c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/86d8732b-a3ec-4917-be33-e2f0b4e054f5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/86d8732b-a3ec-4917-be33-e2f0b4e054f5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/87cf0189-8c43-41af-86e5-acd133bb6f98.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/87cf0189-8c43-41af-86e5-acd133bb6f98.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8861e9a5-c402-4f16-9121-b1644b868e6e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8861e9a5-c402-4f16-9121-b1644b868e6e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/889b14df-3a93-4ca7-bf71-b141c6f52c86.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/889b14df-3a93-4ca7-bf71-b141c6f52c86.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/892121b3-1676-4d37-b279-71e90f10be08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/892121b3-1676-4d37-b279-71e90f10be08.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8b99b94f-3e75-4e4a-bdca-f598eb261628.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8b99b94f-3e75-4e4a-bdca-f598eb261628.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8d83ccaa-7c57-4a72-adaa-0c861e99b231.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8d83ccaa-7c57-4a72-adaa-0c861e99b231.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8d989714-7958-4a71-948f-e109118f8f73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8d989714-7958-4a71-948f-e109118f8f73.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/8ec76716-96fa-4acc-978d-2d4e22b4308d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/8ec76716-96fa-4acc-978d-2d4e22b4308d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9124c060-eb22-4d90-9176-6fc9d47f280b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9124c060-eb22-4d90-9176-6fc9d47f280b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9269483e-7c06-46f5-a765-c01c57eafb38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9269483e-7c06-46f5-a765-c01c57eafb38.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9300d634-8aaf-4636-a503-fbbf40de783f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9300d634-8aaf-4636-a503-fbbf40de783f.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9316b680-2187-4ff4-8d48-e3b28106ccbd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9316b680-2187-4ff4-8d48-e3b28106ccbd.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/93e4a334-7ee4-42c1-9f30-2d1b8a9e76e1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/93e4a334-7ee4-42c1-9f30-2d1b8a9e76e1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9542527e-ac2f-414b-9611-1a04bf6fb9a9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9542527e-ac2f-414b-9611-1a04bf6fb9a9.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/956eb266-c572-45ef-9874-bc7ef8cb9285.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/956eb266-c572-45ef-9874-bc7ef8cb9285.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/97cd30ac-4b05-4a1c-97bd-a5bc2bf72d7d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/97cd30ac-4b05-4a1c-97bd-a5bc2bf72d7d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9a8213d7-b6c2-43c6-90a6-0f1219f007ba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9a8213d7-b6c2-43c6-90a6-0f1219f007ba.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9acc19bf-931b-4216-a52f-be3d25f2fa48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9acc19bf-931b-4216-a52f-be3d25f2fa48.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9bb2bc32-00d6-4e50-a31f-2ab7e8f1be9e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9bb2bc32-00d6-4e50-a31f-2ab7e8f1be9e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9c90bad6-efd1-437c-af8d-37ad81f2d3f8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9c90bad6-efd1-437c-af8d-37ad81f2d3f8.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9e4ad826-ea02-4585-aebf-6710ffc4c54b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9e4ad826-ea02-4585-aebf-6710ffc4c54b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9e69ff9e-7b87-47b5-8628-54b34ee798dc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9e69ff9e-7b87-47b5-8628-54b34ee798dc.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9f3b0681-0fc2-4ae3-ae99-446b572c7120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9f3b0681-0fc2-4ae3-ae99-446b572c7120.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9f9bca68-9550-453c-931e-95905a2280b2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9f9bca68-9550-453c-931e-95905a2280b2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9fcfa5b9-d949-4599-bb11-5a88ba826fb1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9fcfa5b9-d949-4599-bb11-5a88ba826fb1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/9feffccd-ac18-4406-840f-62d77f545d10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/9feffccd-ac18-4406-840f-62d77f545d10.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a0ba0e23-0e45-4817-a4df-63c7b93c9c1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a0ba0e23-0e45-4817-a4df-63c7b93c9c1b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a2803d37-3b94-4270-9e42-89a68c31c033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a2803d37-3b94-4270-9e42-89a68c31c033.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a365d640-4786-49ef-b8c3-8eaa0146c7dc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a365d640-4786-49ef-b8c3-8eaa0146c7dc.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a5ddc34f-8a20-49e1-bf79-1b55a56e36e7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a5ddc34f-8a20-49e1-bf79-1b55a56e36e7.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a68009e9-9fb6-4acc-8e96-c5b019c3db30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a68009e9-9fb6-4acc-8e96-c5b019c3db30.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a98963ca-2fb6-4850-8f30-4ce82fbf70dd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a98963ca-2fb6-4850-8f30-4ce82fbf70dd.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a9b89297-3985-4d0c-b44b-ecd1075569a1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a9b89297-3985-4d0c-b44b-ecd1075569a1.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/a9d215e7-674e-48d8-8ac4-9455ed3adfc6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/a9d215e7-674e-48d8-8ac4-9455ed3adfc6.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/aae7c9e5-c1a7-4182-870c-adfb1d73db03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/aae7c9e5-c1a7-4182-870c-adfb1d73db03.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ad54d894-7701-4d93-af2f-95495020bdd4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ad54d894-7701-4d93-af2f-95495020bdd4.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ae0139e6-522b-41ef-a81a-fc9e13ffb942.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ae0139e6-522b-41ef-a81a-fc9e13ffb942.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ae25aa9d-9015-4601-90e2-4b7bbe5722d6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ae25aa9d-9015-4601-90e2-4b7bbe5722d6.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/afe3584f-954c-482c-92ac-77a8434e090b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/afe3584f-954c-482c-92ac-77a8434e090b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b018ed0e-41a8-46cf-b9c2-aa9e268537ef.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b018ed0e-41a8-46cf-b9c2-aa9e268537ef.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b05d443d-a921-4f4f-9ed2-f201e600d204.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b05d443d-a921-4f4f-9ed2-f201e600d204.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b0d35670-e942-4a63-b0d9-fdbfbde98b4e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b0d35670-e942-4a63-b0d9-fdbfbde98b4e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b140f1e4-9b96-4ad5-8298-46add29e09bf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b140f1e4-9b96-4ad5-8298-46add29e09bf.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b195573c-c15e-4c9c-95ba-1c0fc53f107b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b195573c-c15e-4c9c-95ba-1c0fc53f107b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b1b5215b-5495-4831-a291-541a950e7433.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b1b5215b-5495-4831-a291-541a950e7433.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b1bc44ad-67e6-4c70-b98e-e913049ccc5c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b1bc44ad-67e6-4c70-b98e-e913049ccc5c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b3b91b79-6273-4b68-b526-f772dc21c051.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b3b91b79-6273-4b68-b526-f772dc21c051.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b7d7b27e-4637-4602-8ff2-18e629dd92af.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b7d7b27e-4637-4602-8ff2-18e629dd92af.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b8010c06-7723-45f2-b0f0-d1840b6f09e2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b8010c06-7723-45f2-b0f0-d1840b6f09e2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/b8ca6c0f-27e3-4275-9080-ce09bc45ae3e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/b8ca6c0f-27e3-4275-9080-ce09bc45ae3e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/baada427-7246-4774-bb55-f1632ea1c97a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/baada427-7246-4774-bb55-f1632ea1c97a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/bc72abcc-4afa-4507-a266-fbc1431bf35a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/bc72abcc-4afa-4507-a266-fbc1431bf35a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/bca9e126-3de6-4122-84cc-1f4a9796efca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/bca9e126-3de6-4122-84cc-1f4a9796efca.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/bd083fad-2ffe-4bf1-8877-4b0475666357.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/bd083fad-2ffe-4bf1-8877-4b0475666357.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/bdc4b964-1395-4ea9-827d-7390bb1d41e4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/bdc4b964-1395-4ea9-827d-7390bb1d41e4.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/be15767b-f7be-4c81-9251-ad9f28c6974c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/be15767b-f7be-4c81-9251-ad9f28c6974c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/bed1d18b-43ba-47f6-804e-69454b1274dc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/bed1d18b-43ba-47f6-804e-69454b1274dc.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c06c0bef-84b3-4416-b3af-8b6d91d8b774.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c06c0bef-84b3-4416-b3af-8b6d91d8b774.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c07d70dd-9e33-407c-aa3a-8055a1dbcbb0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c07d70dd-9e33-407c-aa3a-8055a1dbcbb0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c463a508-7587-4d3e-8898-5ed02ff60165.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c463a508-7587-4d3e-8898-5ed02ff60165.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c4deef83-4035-4aa0-8bbe-cf51794d4b2c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c4deef83-4035-4aa0-8bbe-cf51794d4b2c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c5ad1da4-259f-44d7-b959-c2fb7cb421bc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c5ad1da4-259f-44d7-b959-c2fb7cb421bc.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c5b9e993-72c6-4d98-8507-f4d8ef52350b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c5b9e993-72c6-4d98-8507-f4d8ef52350b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c699f40c-d5d5-4678-96b0-6462db64b09d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c699f40c-d5d5-4678-96b0-6462db64b09d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c77ecb3d-3201-4e17-b114-4b5389cfd941.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c77ecb3d-3201-4e17-b114-4b5389cfd941.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c88fcae6-1502-4be5-b7b7-ca0c3e31dade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c88fcae6-1502-4be5-b7b7-ca0c3e31dade.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c8f9a3fb-88f3-452b-9bf4-82e4b76d1f6a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c8f9a3fb-88f3-452b-9bf4-82e4b76d1f6a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c97d0285-7e8e-4099-8d04-cda1b7385ddb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c97d0285-7e8e-4099-8d04-cda1b7385ddb.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/c9d23c9f-484f-4377-91d4-ea9929170a97.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/c9d23c9f-484f-4377-91d4-ea9929170a97.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ca0d1178-73e4-4479-bf7f-c87bb27c6814.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ca0d1178-73e4-4479-bf7f-c87bb27c6814.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ca5e3310-b96e-4530-961c-78d9738d8de4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ca5e3310-b96e-4530-961c-78d9738d8de4.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/cadf27f0-8fe3-48ef-9763-1e67d787df9a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/cadf27f0-8fe3-48ef-9763-1e67d787df9a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/cb3d1208-e596-4778-90c4-7950cc6b98b7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/cb3d1208-e596-4778-90c4-7950cc6b98b7.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/cc3efe3b-0fe1-4c6c-992b-bb376e0cd270.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/cc3efe3b-0fe1-4c6c-992b-bb376e0cd270.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/cc88793c-788d-4063-8d63-3995473ef3fa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/cc88793c-788d-4063-8d63-3995473ef3fa.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/cc96a094-263c-4497-b506-4921ac18fa5b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/cc96a094-263c-4497-b506-4921ac18fa5b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ccc283e4-0534-4348-9b26-53e112d34fca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ccc283e4-0534-4348-9b26-53e112d34fca.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ccea8ddb-b0e0-4c37-a04b-bb98d138aa9d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ccea8ddb-b0e0-4c37-a04b-bb98d138aa9d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/cd0e503a-3f79-4950-a4e8-981efa4f675f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/cd0e503a-3f79-4950-a4e8-981efa4f675f.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d1d0203a-10a3-4ab0-ae3d-36fbff619564.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d1d0203a-10a3-4ab0-ae3d-36fbff619564.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d2f0b433-56ce-47e1-988f-57e0f91a9f1d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d2f0b433-56ce-47e1-988f-57e0f91a9f1d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d3332fa1-ceb3-44b0-abb4-caaca124d874.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d3332fa1-ceb3-44b0-abb4-caaca124d874.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d486dd5f-20e7-49de-a80f-e18581d62f1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d486dd5f-20e7-49de-a80f-e18581d62f1b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d615ee3e-b49f-4444-a801-ca7ae8ff0191.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d615ee3e-b49f-4444-a801-ca7ae8ff0191.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d73d8fd4-81ff-44ef-b183-556b78d6dead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d73d8fd4-81ff-44ef-b183-556b78d6dead.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d7e0cc91-87ef-45b7-aab6-52b5118b1c66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d7e0cc91-87ef-45b7-aab6-52b5118b1c66.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d80fe7e2-dfb5-4131-afe1-fca60121f00c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d80fe7e2-dfb5-4131-afe1-fca60121f00c.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d8131441-3144-4612-95c7-b29156b42780.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d8131441-3144-4612-95c7-b29156b42780.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d819e301-47bc-44b3-87a8-165dfbbea829.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d819e301-47bc-44b3-87a8-165dfbbea829.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d856fa3f-dba1-41fc-bf84-1f7286e1340d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d856fa3f-dba1-41fc-bf84-1f7286e1340d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d8c4dff0-e29b-46d8-ad82-6c8ef3e33298.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d8c4dff0-e29b-46d8-ad82-6c8ef3e33298.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d90ec4ae-78f0-4997-a1cd-a5f1043e6000.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d90ec4ae-78f0-4997-a1cd-a5f1043e6000.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/d99f54ce-93c9-4fdf-99ce-4d2d12a08fc8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/d99f54ce-93c9-4fdf-99ce-4d2d12a08fc8.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/dc5aadd9-161f-4b9b-ba7c-9728fbdb8579.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/dc5aadd9-161f-4b9b-ba7c-9728fbdb8579.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/dc5ec950-6657-4339-be86-5290844f7f23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/dc5ec950-6657-4339-be86-5290844f7f23.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/dcd2b4b8-6fdb-4433-ae49-b50fd9a5b30e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/dcd2b4b8-6fdb-4433-ae49-b50fd9a5b30e.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e01f0f8e-1fd4-4007-95f5-14b4811e4fb5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e01f0f8e-1fd4-4007-95f5-14b4811e4fb5.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e071178a-8e1d-44b4-9d25-0f025c6cb51a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e071178a-8e1d-44b4-9d25-0f025c6cb51a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e1f0d1f8-8524-44fc-ba7a-1ba3e21545d0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e1f0d1f8-8524-44fc-ba7a-1ba3e21545d0.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e305fa40-b425-41ad-8d0c-b8824e17738b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e305fa40-b425-41ad-8d0c-b8824e17738b.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e684e068-6be2-41c9-abf9-ac034839338d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e684e068-6be2-41c9-abf9-ac034839338d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e6cf9d43-ea8b-41cc-a385-4141d311cefa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e6cf9d43-ea8b-41cc-a385-4141d311cefa.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/e7a17bc8-8e1a-43e1-b694-fbcdfbb0f2c2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/e7a17bc8-8e1a-43e1-b694-fbcdfbb0f2c2.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/eb063ae1-c186-474d-b30d-be1cd4f5f405.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/eb063ae1-c186-474d-b30d-be1cd4f5f405.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/eb7ac204-de56-49f7-bb91-312014afa44a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/eb7ac204-de56-49f7-bb91-312014afa44a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/eed52c86-d487-48e4-bffe-9521f8184363.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/eed52c86-d487-48e4-bffe-9521f8184363.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ef3f0c73-5d05-4577-a8a3-b93fa646ce5a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ef3f0c73-5d05-4577-a8a3-b93fa646ce5a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ef6b679c-125f-463b-b5f4-3cf2f0f85e6d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ef6b679c-125f-463b-b5f4-3cf2f0f85e6d.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/f056dec2-4801-4a70-94e6-d0f19cae52b3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/f056dec2-4801-4a70-94e6-d0f19cae52b3.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/f0f980cd-8a0e-4a3f-a8e8-4d4bebdf5980.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/f0f980cd-8a0e-4a3f-a8e8-4d4bebdf5980.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/f7e0e2e3-c97f-4520-b673-5043751a55cb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/f7e0e2e3-c97f-4520-b673-5043751a55cb.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/f80d38e6-5035-4f6a-afa2-c3c65b9feb9a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/f80d38e6-5035-4f6a-afa2-c3c65b9feb9a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/f95357ce-8c94-4039-85ae-8d93d1a7bc5a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/f95357ce-8c94-4039-85ae-8d93d1a7bc5a.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/fa68bdb9-1cbb-4aad-8098-12cee15536ed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/fa68bdb9-1cbb-4aad-8098-12cee15536ed.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/fafc9429-1797-45b8-9eff-91180e052825.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/fafc9429-1797-45b8-9eff-91180e052825.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/fb1a9082-9c14-409e-a4a0-d26aabb5170f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/fb1a9082-9c14-409e-a4a0-d26aabb5170f.png -------------------------------------------------------------------------------- /THS/trader_test/captchas/ff3e1928-6be9-4007-8f8d-94cb6b35b885.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tu5039/THSTrader/HEAD/THS/trader_test/captchas/ff3e1928-6be9-4007-8f8d-94cb6b35b885.png -------------------------------------------------------------------------------- /THS/const.py: -------------------------------------------------------------------------------- 1 | """ 定义一些常量 """ 2 | 3 | BALANCE_CONTROL_ID_GROUP = { 4 | '资金余额': 1012, 5 | '可用金额': 1016, 6 | '可取金额': 1017, 7 | '股票市值': 1014, 8 | '总资产': 1015 9 | } 10 | -------------------------------------------------------------------------------- /THS/captcha_recognize.py: -------------------------------------------------------------------------------- 1 | import pytesseract 2 | from PIL import Image 3 | 4 | 5 | def captcha_recognize(img_path): 6 | im = Image.open(img_path).convert("L") 7 | # 1. threshold the image 8 | threshold = 200 9 | table = [] 10 | for i in range(256): 11 | if i < threshold: 12 | table.append(0) 13 | else: 14 | table.append(1) 15 | 16 | out = im.point(table, '1') 17 | # out.show() 18 | # 2. recognize with tesseract 19 | num = pytesseract.image_to_string(out) 20 | return num 21 | -------------------------------------------------------------------------------- /THS/trader_test/captcha_recognize.py: -------------------------------------------------------------------------------- 1 | import pytesseract 2 | from PIL import Image 3 | 4 | 5 | def captcha_recognize(img_path): 6 | im = Image.open(img_path).convert("L") 7 | # 1. threshold the image 8 | threshold = 200 9 | table = [] 10 | for i in range(256): 11 | if i < threshold: 12 | table.append(0) 13 | else: 14 | table.append(1) 15 | 16 | out = im.point(table, '1') 17 | # out.show() 18 | # 2. recognize with tesseract 19 | num = pytesseract.image_to_string(out) 20 | return num 21 | -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | 4 | from THS.THSTrader import THSTrader 5 | 6 | 7 | if __name__ == "__main__": 8 | trader = THSTrader(r"C:\同花顺软件\同花顺\xiadan.exe") # 连接客户端 9 | 10 | print(trader.get_balance()) # 获取当前可用资金 11 | 12 | print(trader.get_position()) # 获取当前持有的股票 13 | print(trader.get_balance()) 14 | # print(trader.sell(stock_no="000622", price=4.42, amount=100)) # 卖出股票 15 | 16 | # result = trader.buy(stock_no="000622", price=0.49, amount=100) # 买入股票 17 | # print(result) 18 | 19 | # if result["success"] == True: # 如果买入下单成功,尝试撤单 20 | # print("撤单测试--->", end="") 21 | # print(trader.cancel_entrust(entrust_no=result["entrust_no"])) 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | **[easytrader](https://github.com/shidenggui/easytrader)仍然有维护,而本项目的维护已经基本停止,如有使用需要,可转步到easytrader,谢谢。** 2 | 3 | # THSTrader 4 | 量化交易。通用版同花顺客户端的python API。(Python3) 5 | 6 | ## 为什么有这个项目 7 | 本来看到了这个[easytrader](https://github.com/shidenggui/easytrader)这个项目,不过这个客户端已经过时了(被强制更新)。于是乎,自己看了一遍easytrader的源码,写了一个自己的版本。 8 | 9 | 10 | ## 未知的BUG 11 | - 在某些电脑上面验证码截图失效导致无法使用(该问题出现在我苹果电脑上面装的windows虚拟机) 12 | 13 | 14 | ## 安装说明 15 | 16 | ### 同花顺客户端安装 17 | #### 下载链接 18 | 版本号:v8.70.42_20180426 19 | 链接: https://pan.baidu.com/s/1Ugk4m7Lh1Hw-EXLXp3q5Uw 密码: r1ix 20 | 21 | ### tesseract-ocr安装 22 | 首先下载Tesseract软件:[https://digi.bib.uni-mannheim.de/tesseract/](https://digi.bib.uni-mannheim.de/tesseract/),并把tesseract添加到系统path中。 23 | 24 | ### python环境安装 25 | ``` bash 26 | pip3 install -r requirements.txt 27 | ``` 28 | 29 | ## 操作接口(API) 30 | 操作演示视频见:[https://www.bilibili.com/video/av46248487/](https://www.bilibili.com/video/av46248487/) 31 | 32 | ### 说明 33 | 首先登陆同花顺客户端,然后**打开下单程序**。 34 | 35 | **注意:使用过程中请保证下单程序处于可视状态,不要最小化同花顺客户端。** 36 | 37 | ### 示例代码 38 | ``` python 39 | from THS.THSTrader import THSTrader 40 | 41 | 42 | if __name__ == "__main__": 43 | trader = THSTrader(r"C:\同花顺软件\同花顺\xiadan.exe") # 连接客户端 44 | 45 | print(trader.get_balance()) # 获取当前可用资金 46 | 47 | print(trader.get_position()) # 获取当前持有的股票 48 | 49 | print(trader.sell(stock_no="162411", amount=100, price=0.62)) # 卖出股票 50 | 51 | result = trader.buy(stock_no="162411", amount=100, price=0.541) # 买入股票 52 | print(result) 53 | 54 | if result["success"] == True: # 如果买入下单成功,尝试撤单 55 | print("撤单测试--->", end="") 56 | print(trader.cancel_entrust(entrust_no=result["entrust_no"])) 57 | ``` 58 | 59 | ### 获取当前可用资金 60 | ``` python 61 | trader.get_balance() 62 | ``` 63 | 返回: 64 | ``` 65 | { 66 | '资金余额': 198577.0, 67 | '可用金额': 197264.69, 68 | '可取金额': 0.0, 69 | '股票市值': 2869.4, 70 | '总资产': 200134.09 71 | } 72 | ``` 73 | ### 获取当前持有的股票 74 | ``` python 75 | trader.get_position() 76 | ``` 77 | 返回: 78 | ``` 79 | [{ 80 | '证券代码': 2024, 81 | '证券名称': '苏宁易购', 82 | '股票余额': 100, 83 | '可用余额': 0, 84 | '冻结数量': 100, 85 | '盈亏': -0.31, 86 | '成本价': 13.123, 87 | '盈亏比例(%)': -0.02, 88 | '市价': 13.12, 89 | '市值': 1312.0, 90 | '交易市场': '深圳A股', 91 | '股东帐户': 101106569, 92 | '实际数量': 100, 93 | '可申赎数量': 100 94 | }, { 95 | '证券代码': 162411, 96 | '证券名称': '华宝油气', 97 | '股票余额': 2600, 98 | '可用余额': 2600, 99 | '冻结数量': 0, 100 | '盈亏': 134.4, 101 | '成本价': 0.547, 102 | '盈亏比例(%)': 9.44, 103 | '市价': 0.6, 104 | '市值': 1557.4, 105 | '交易市场': '深圳A股', 106 | '股东帐户': 101106569, 107 | '实际数量': 2600, 108 | '可申赎数量': 2600 109 | }] 110 | ``` 111 | 112 | ### 买入股票 113 | ``` python 114 | trader.buy(stock_no="162411", amount=100, price=0.541) 115 | ``` 116 | 返回: 117 | ``` 118 | { 119 | 'success': True, 120 | 'msg': '您的买入委托已成功提交,合同编号:873674677。', 121 | 'entrust_no': '873674677' 122 | } 123 | ``` 124 | 125 | ### 卖出股票 126 | ``` python 127 | trader.sell(stock_no="162411", amount=100, price=0.62) 128 | ``` 129 | 返回: 130 | ``` 131 | { 132 | 'success': True, 133 | 'msg': '您的卖出委托已成功提交,合同编号:873679996。', 134 | 'entrust_no': '873679996' 135 | } 136 | ``` 137 | 138 | 139 | ### 买卖撤单 140 | ``` python 141 | trader.cancel_entrust(entrust_no="873674677") 142 | ``` 143 | 返回: 144 | ``` 145 | { 146 | 'success': True, 147 | 'msg': '您的撤单委托已成功提交,合同编号:873674677。', 148 | 'entrust_no': '873674677' 149 | } 150 | ``` 151 | 152 | ## LICENSE 153 | GPL-3.0 154 | -------------------------------------------------------------------------------- /THS/THSTrader.py: -------------------------------------------------------------------------------- 1 | import pywinauto 2 | from pywinauto import clipboard 3 | from pywinauto import keyboard 4 | from .captcha_recognize import captcha_recognize 5 | import pandas as pd 6 | import io 7 | from .const import BALANCE_CONTROL_ID_GROUP 8 | import time 9 | 10 | 11 | class THSTrader: 12 | 13 | def __init__(self, exe_path=r"C:\同花顺软件\同花顺\xiadan.exe"): 14 | print("正在连接客户端:", exe_path, "......") 15 | self.app = pywinauto.Application().connect(path=exe_path, timeout=10) 16 | print("连接成功!!!") 17 | self.main_wnd = self.app.top_window() 18 | 19 | def buy(self, stock_no, price, amount): 20 | """ 买入 """ 21 | time.sleep(1) 22 | self.__select_menu(['买入[F1]']) 23 | return self.__trade(stock_no, price, amount) 24 | 25 | def sell(self, stock_no, price, amount): 26 | """ 卖出 """ 27 | time.sleep(1) 28 | self.__select_menu(['卖出[F2]']) 29 | return self.__trade(stock_no, price, amount) 30 | 31 | def cancel_entrust(self, entrust_no): 32 | """ 撤单 """ 33 | time.sleep(1) 34 | self.__select_menu(['撤单[F3]']) 35 | cancelable_entrusts = self.__get_grid_data( 36 | is_entrust=True) # 获取可以撤单的条目 37 | 38 | for i, entrust in enumerate(cancelable_entrusts): 39 | if str(entrust["合同编号"]) == str(entrust_no): # 对指定合同进行撤单 40 | return self.__cancel_by_double_click(i) 41 | return {"success": False, "msg": "没找到指定订单"} 42 | 43 | def get_balance(self): 44 | """ 获取资金情况 """ 45 | time.sleep(1) 46 | self.__select_menu(['查询[F4]', '资金股票']) 47 | 48 | result = {} 49 | for key, control_id in BALANCE_CONTROL_ID_GROUP.items(): 50 | result[key] = float( 51 | self.main_wnd.window(control_id=control_id, 52 | class_name='Static').window_text() 53 | ) 54 | return result 55 | 56 | def check_trade_finished(self, entrust_no): 57 | """ 判断订单是否完成 """ 58 | time.sleep(1) 59 | self.__select_menu(['卖出[F2]']) 60 | time.sleep(1) 61 | self.__select_menu(['撤单[F3]']) 62 | cancelable_entrusts = self.__get_grid_data(is_entrust=True) 63 | # print(cancelable_entrusts) 64 | for i, entrust in enumerate(cancelable_entrusts): 65 | if str(entrust["合同编号"]) == str(entrust_no): # 如果订单未完成,就意味着可以撤单 66 | if entrust["成交数量"] == 0: 67 | return False 68 | return True 69 | 70 | def get_position(self): 71 | """ 获取持仓 """ 72 | time.sleep(1) 73 | self.__select_menu(['查询[F4]', '资金股票']) 74 | return self.__get_grid_data() 75 | 76 | def get_today_entrusts(self): 77 | """ 获取当日委托 """ 78 | time.sleep(1) 79 | self.__select_menu(['查询[F4]', '当日委托']) 80 | return self.__get_grid_data() 81 | 82 | def get_today_trades(self): 83 | time.sleep(1) 84 | self.__select_menu(['查询[F4]', '当日成交']) 85 | return self.__get_grid_data() 86 | 87 | def __trade(self, stock_no, price, amount): 88 | print(stock_no, price, amount) 89 | time.sleep(0.2) 90 | self.main_wnd.window(control_id=0x408, class_name="Edit").type_keys( 91 | str(stock_no)) # 设置股票代码 92 | time.sleep(0.5) 93 | # self.main_wnd.window(control_id=0x409, class_name="Edit").type_keys( 94 | # str(price)) # 设置价格 95 | # time.sleep(0.5) 96 | self.main_wnd.window(control_id=0x40A, class_name="Edit").type_keys( 97 | str(int(amount))) # 设置股数目 98 | time.sleep(0.2) 99 | self.main_wnd.window( 100 | control_id=0x3EE, class_name="Button").click() # 点击卖出or买入 101 | 102 | time.sleep(0.2) 103 | # self.app.top_window().window(control_id=0x6, class_name='Button').click() # 确定买入 104 | # self.app.top_window().set_focus() 105 | # time.sleep(0.2) 106 | # result = self.app.top_window().window( 107 | # control_id=0x3EC, class_name='Static').window_text() 108 | # self.app.top_window().set_focus() 109 | # time.sleep(0.2) 110 | # try: 111 | # self.app.top_window().window(control_id=0x2, class_name='Button').click() # 确定 112 | # except: 113 | # pass 114 | 115 | # return self.__parse_result(result) 116 | 117 | def __get_grid_data(self, is_entrust=False): 118 | """ 获取grid里面的数据 """ 119 | time.sleep(0.1) 120 | grid = self.main_wnd.window( 121 | control_id=0x417, class_name='CVirtualGridCtrl') 122 | time.sleep(0.1) 123 | grid.set_focus().right_click() # 模拟右键 124 | 125 | if not is_entrust: 126 | keyboard.SendKeys('{DOWN}') 127 | time.sleep(0.1) 128 | keyboard.SendKeys('{DOWN}') 129 | time.sleep(0.1) 130 | keyboard.SendKeys('{DOWN}') 131 | time.sleep(0.1) 132 | keyboard.SendKeys('{DOWN}') 133 | time.sleep(0.1) 134 | keyboard.SendKeys("{ENTER}") 135 | time.sleep(1) 136 | 137 | file_path = "tmp.png" 138 | 139 | while 0: 140 | self.app.top_window().window(control_id=0x965, class_name='Static').\ 141 | CaptureAsImage().save(file_path) # 保存验证码 142 | 143 | captcha_num = captcha_recognize(file_path) # 识别验证码 144 | print("captcha result-->", captcha_num) 145 | self.app.top_window().window( 146 | control_id=0x964, class_name='Edit').set_text(captcha_num) # 模拟输入验证码 147 | 148 | self.app.top_window().set_focus() 149 | keyboard.SendKeys("{ENTER}") # 模拟发送enter,点击确定 150 | try: 151 | print(self.app.top_window().window( 152 | control_id=0x966, class_name='Static').window_text()) 153 | except: 154 | break 155 | time.sleep(0.1) 156 | 157 | data = clipboard.GetData() 158 | df = pd.read_csv(io.StringIO(data), delimiter='\t', na_filter=False) 159 | return df.to_dict('records') 160 | 161 | def __select_menu(self, path): 162 | """ 点击左边菜单 """ 163 | if r"网上股票" not in self.app.top_window().window_text(): 164 | self.app.top_window().set_focus() 165 | pywinauto.keyboard.SendKeys("{ENTER}") 166 | self.__get_left_menus_handle().get_item(path).click() 167 | 168 | def __get_left_menus_handle(self): 169 | while True: 170 | try: 171 | handle = self.main_wnd.window( 172 | control_id=129, class_name='SysTreeView32') 173 | # sometime can't find handle ready, must retry 174 | handle.wait('ready', 2) 175 | return handle 176 | except Exception as ex: 177 | print(ex) 178 | pass 179 | 180 | def __cancel_by_double_click(self, row): 181 | """ 通过双击撤单 """ 182 | x = 50 183 | y = 30 + 16 * row 184 | self.app.top_window().window( 185 | control_id=0x417, class_name='CVirtualGridCtrl').double_click(coords=(x, y)) 186 | self.app.top_window().window(control_id=0x6, class_name='Button').click() # 确定撤单 187 | time.sleep(0.1) 188 | if "网上股票交易系统5.0" not in self.app.top_window().window_text(): 189 | result = self.app.top_window().window( 190 | control_id=0x3EC, class_name='Static').window_text() 191 | self.app.top_window().window(control_id=0x2, class_name='Button').click() # 确定撤单 192 | return self.__parse_result(result) 193 | else: 194 | return { 195 | "success": True 196 | } 197 | 198 | @staticmethod 199 | def __parse_result(result): 200 | """ 解析买入卖出的结果 """ 201 | 202 | # "您的买入委托已成功提交,合同编号:865912566。" 203 | # "您的卖出委托已成功提交,合同编号:865967836。" 204 | # "您的撤单委托已成功提交,合同编号:865967836。" 205 | # "系统正在清算中,请稍后重试! " 206 | 207 | if r"已成功提交,合同编号:" in result: 208 | return { 209 | "success": True, 210 | "msg": result, 211 | "entrust_no": result.split("合同编号:")[1].split("。")[0] 212 | } 213 | else: 214 | return { 215 | "success": False, 216 | "msg": result 217 | } 218 | -------------------------------------------------------------------------------- /THS/trader_test/create_captcha_dataset.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import pywinauto\n", 10 | "from pywinauto import clipboard\n", 11 | "import time" 12 | ] 13 | }, 14 | { 15 | "cell_type": "code", 16 | "execution_count": 2, 17 | "metadata": {}, 18 | "outputs": [ 19 | { 20 | "name": "stderr", 21 | "output_type": "stream", 22 | "text": [ 23 | "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py:1032: UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python)\n", 24 | " UserWarning)\n" 25 | ] 26 | } 27 | ], 28 | "source": [ 29 | "app = pywinauto.Application().connect(path=r\"C:\\同花顺软件\\同花顺\\xiadan.exe\",timeout=10)" 30 | ] 31 | }, 32 | { 33 | "cell_type": "code", 34 | "execution_count": 3, 35 | "metadata": {}, 36 | "outputs": [], 37 | "source": [ 38 | "main = app.top_window()" 39 | ] 40 | }, 41 | { 42 | "cell_type": "code", 43 | "execution_count": 4, 44 | "metadata": {}, 45 | "outputs": [], 46 | "source": [ 47 | "def get_left_menus_handle():\n", 48 | " while True:\n", 49 | " try:\n", 50 | " handle = main.window(\n", 51 | " control_id=129,\n", 52 | " class_name='SysTreeView32'\n", 53 | " )\n", 54 | " # sometime can't find handle ready, must retry\n", 55 | " handle.wait('ready', 2)\n", 56 | " return handle\n", 57 | " except:\n", 58 | " pass" 59 | ] 60 | }, 61 | { 62 | "cell_type": "code", 63 | "execution_count": 5, 64 | "metadata": {}, 65 | "outputs": [ 66 | { 67 | "data": { 68 | "text/plain": [ 69 | "" 70 | ] 71 | }, 72 | "execution_count": 5, 73 | "metadata": {}, 74 | "output_type": "execute_result" 75 | } 76 | ], 77 | "source": [ 78 | "get_left_menus_handle().get_item(['查询[F4]', '资金股票']).click()" 79 | ] 80 | }, 81 | { 82 | "cell_type": "code", 83 | "execution_count": 6, 84 | "metadata": {}, 85 | "outputs": [], 86 | "source": [ 87 | "grid = main.window(control_id=0x417, class_name='CVirtualGridCtrl')\n", 88 | "\n", 89 | "grid.set_focus().right_click() # 模拟右键\n", 90 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 91 | "time.sleep(0.1)\n", 92 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 93 | "time.sleep(0.1)\n", 94 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 95 | "time.sleep(0.1)\n", 96 | "pywinauto.keyboard.SendKeys(\"{ENTER}\")" 97 | ] 98 | }, 99 | { 100 | "cell_type": "markdown", 101 | "metadata": {}, 102 | "source": [ 103 | "### 下面保存验证码\n", 104 | "> 注:进行此操作时,请保证验证码图片处于可视状态" 105 | ] 106 | }, 107 | { 108 | "cell_type": "code", 109 | "execution_count": 8, 110 | "metadata": {}, 111 | "outputs": [ 112 | { 113 | "name": "stdout", 114 | "output_type": "stream", 115 | "text": [ 116 | "captchas/b7d7b27e-4637-4602-8ff2-18e629dd92af.png\n", 117 | "captchas/0f78c6f6-674a-4899-9da8-a11aa3194312.png\n", 118 | "captchas/e1f0d1f8-8524-44fc-ba7a-1ba3e21545d0.png\n", 119 | "captchas/c4deef83-4035-4aa0-8bbe-cf51794d4b2c.png\n", 120 | "captchas/4f385bab-3540-4e46-85b6-021b53170089.png\n", 121 | "captchas/9269483e-7c06-46f5-a765-c01c57eafb38.png\n", 122 | "captchas/a68009e9-9fb6-4acc-8e96-c5b019c3db30.png\n", 123 | "captchas/09550e1c-e367-4349-afe9-2168126e4715.png\n", 124 | "captchas/23757f8f-91da-4bf6-96cc-dd481642f310.png\n", 125 | "captchas/47633d22-3390-4a13-a58e-15156e3d089b.png\n", 126 | "captchas/bca9e126-3de6-4122-84cc-1f4a9796efca.png\n", 127 | "captchas/d80fe7e2-dfb5-4131-afe1-fca60121f00c.png\n", 128 | "captchas/dcd2b4b8-6fdb-4433-ae49-b50fd9a5b30e.png\n", 129 | "captchas/2c897a09-2b7f-4601-b844-d3ab847ec501.png\n", 130 | "captchas/3c3acd88-1d9e-40b8-83b7-d135bdbe0423.png\n", 131 | "captchas/1b5f591e-5cc6-4919-8968-da5a9c1388a3.png\n", 132 | "captchas/f7e0e2e3-c97f-4520-b673-5043751a55cb.png\n", 133 | "captchas/573281b9-e21f-4fd9-a7b1-d316418d5061.png\n", 134 | "captchas/ff3e1928-6be9-4007-8f8d-94cb6b35b885.png\n", 135 | "captchas/5d867175-f6a0-4aef-b92e-1e3d503e9272.png\n" 136 | ] 137 | } 138 | ], 139 | "source": [ 140 | "import uuid\n", 141 | "\n", 142 | "for i in range(20):\n", 143 | " app.top_window().window(\n", 144 | " control_id=0x965,\n", 145 | " class_name='Static'\n", 146 | " ).click()\n", 147 | " \n", 148 | " file_path = \"captchas/{uid}.png\".format(uid=str(uuid.uuid4()))\n", 149 | " print(file_path)\n", 150 | " app.top_window().window(\n", 151 | " control_id=0x965,\n", 152 | " class_name='Static'\n", 153 | " ).CaptureAsImage().save(file_path)" 154 | ] 155 | }, 156 | { 157 | "cell_type": "code", 158 | "execution_count": 9, 159 | "metadata": {}, 160 | "outputs": [], 161 | "source": [ 162 | "import pytesseract\n", 163 | "from PIL import Image" 164 | ] 165 | }, 166 | { 167 | "cell_type": "code", 168 | "execution_count": 10, 169 | "metadata": {}, 170 | "outputs": [], 171 | "source": [ 172 | "def recognize_captcha(img_path):\n", 173 | " im = Image.open(img_path).convert(\"L\")\n", 174 | " # 1. threshold the image\n", 175 | " threshold = 200\n", 176 | " table = []\n", 177 | " for i in range(256):\n", 178 | " if i < threshold:\n", 179 | " table.append(0)\n", 180 | " else:\n", 181 | " table.append(1)\n", 182 | "\n", 183 | " out = im.point(table, '1')\n", 184 | " # out.show()\n", 185 | " # 2. recognize with tesseract\n", 186 | " num = pytesseract.image_to_string(out)\n", 187 | " return num" 188 | ] 189 | }, 190 | { 191 | "cell_type": "code", 192 | "execution_count": 17, 193 | "metadata": {}, 194 | "outputs": [], 195 | "source": [ 196 | "img_path = \"captchas/b7d7b27e-4637-4602-8ff2-18e629dd92af.png\"" 197 | ] 198 | }, 199 | { 200 | "cell_type": "code", 201 | "execution_count": 18, 202 | "metadata": {}, 203 | "outputs": [ 204 | { 205 | "data": { 206 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAAD4AAAAXCAAAAAB2CaNmAAABlUlEQVR4nNWUvUvDQBjGn5OCkMNBTLtpplqsFh2qOKjoop0cKtTFgn+CCA46u4qTf4BOfqGQyW5qB4dqQai2wS1d7EdsoSRDl3Nocsm1VCld9Jbk7n1/eZ4neQlh6GcN9EX3gjOz88zn3OhM6cYVTltX/25HidjZzZO5ZbGd7AQcWUMGUD1Khp0GtUbjYY86S/k4jcpGFKjmHBpEBsCu/Jy+Tir6BcLg2bXnLTcjiwLsZVa0qekxp34fVzA2fweOm+oq1wJZAmAMUoE21RlH3GrIACYs08EF6y2FdJt4tr4iHsAynexaBvtY8z7BaLaJP01ze9JQNQDkARs31fEE1c9Lm674Y0Q0k6pvu+EmbxQpWwJs88VmgmJs/bXsGvsUh8DIuOLAQvTwoDQl0ZY6ew9SAKPDVd5S/BJz5uF1Q2IxIB2k6Da0FXHLctTrhhUA9haxzZPwhwmgWJN5vQ23GpL3TWpnZevW4lMXGrlMUN3z6YlfxOke8W5DoWMstuafMAAs9QB7iHtc5L/8Lv4gTn7v+WF9AzMVgIP+xbtYAAAAAElFTkSuQmCC\n", 207 | "text/plain": [ 208 | "" 209 | ] 210 | }, 211 | "execution_count": 18, 212 | "metadata": {}, 213 | "output_type": "execute_result" 214 | } 215 | ], 216 | "source": [ 217 | "Image.open(img_path).convert(\"L\")" 218 | ] 219 | }, 220 | { 221 | "cell_type": "code", 222 | "execution_count": 20, 223 | "metadata": {}, 224 | "outputs": [], 225 | "source": [ 226 | "res = recognize_captcha(img_path)" 227 | ] 228 | }, 229 | { 230 | "cell_type": "code", 231 | "execution_count": 22, 232 | "metadata": {}, 233 | "outputs": [ 234 | { 235 | "data": { 236 | "text/plain": [ 237 | "b'6779'" 238 | ] 239 | }, 240 | "execution_count": 22, 241 | "metadata": {}, 242 | "output_type": "execute_result" 243 | } 244 | ], 245 | "source": [ 246 | "bytes(res, \"ascii\")" 247 | ] 248 | } 249 | ], 250 | "metadata": { 251 | "kernelspec": { 252 | "display_name": "Python 3", 253 | "language": "python", 254 | "name": "python3" 255 | }, 256 | "language_info": { 257 | "codemirror_mode": { 258 | "name": "ipython", 259 | "version": 3 260 | }, 261 | "file_extension": ".py", 262 | "mimetype": "text/x-python", 263 | "name": "python", 264 | "nbconvert_exporter": "python", 265 | "pygments_lexer": "ipython3", 266 | "version": "3.6.5" 267 | } 268 | }, 269 | "nbformat": 4, 270 | "nbformat_minor": 2 271 | } 272 | -------------------------------------------------------------------------------- /THS/trader_test/captcha_break.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": {}, 6 | "source": [ 7 | "## 获取验证码数据" 8 | ] 9 | }, 10 | { 11 | "cell_type": "code", 12 | "execution_count": 1, 13 | "metadata": {}, 14 | "outputs": [], 15 | "source": [ 16 | "import pywinauto\n", 17 | "from pywinauto import clipboard\n", 18 | "import time" 19 | ] 20 | }, 21 | { 22 | "cell_type": "code", 23 | "execution_count": 2, 24 | "metadata": {}, 25 | "outputs": [ 26 | { 27 | "name": "stderr", 28 | "output_type": "stream", 29 | "text": [ 30 | "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py:1032: UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python)\n", 31 | " UserWarning)\n" 32 | ] 33 | } 34 | ], 35 | "source": [ 36 | "app = pywinauto.Application().connect(path=r\"C:\\同花顺软件\\同花顺\\xiadan.exe\",timeout=10)" 37 | ] 38 | }, 39 | { 40 | "cell_type": "code", 41 | "execution_count": 3, 42 | "metadata": {}, 43 | "outputs": [], 44 | "source": [ 45 | "main = app.top_window()" 46 | ] 47 | }, 48 | { 49 | "cell_type": "code", 50 | "execution_count": 4, 51 | "metadata": {}, 52 | "outputs": [], 53 | "source": [ 54 | "def get_left_menus_handle():\n", 55 | " while True:\n", 56 | " try:\n", 57 | " handle = main.window(\n", 58 | " control_id=129,\n", 59 | " class_name='SysTreeView32'\n", 60 | " )\n", 61 | " # sometime can't find handle ready, must retry\n", 62 | " handle.wait('ready', 2)\n", 63 | " return handle\n", 64 | " except:\n", 65 | " pass" 66 | ] 67 | }, 68 | { 69 | "cell_type": "code", 70 | "execution_count": null, 71 | "metadata": {}, 72 | "outputs": [], 73 | "source": [ 74 | "get_left_menus_handle().get_item(['查询[F4]', '资金股票']).click()" 75 | ] 76 | }, 77 | { 78 | "cell_type": "code", 79 | "execution_count": null, 80 | "metadata": {}, 81 | "outputs": [], 82 | "source": [] 83 | }, 84 | { 85 | "cell_type": "code", 86 | "execution_count": null, 87 | "metadata": {}, 88 | "outputs": [], 89 | "source": [] 90 | }, 91 | { 92 | "cell_type": "markdown", 93 | "metadata": {}, 94 | "source": [ 95 | "## 验证码识别步骤" 96 | ] 97 | }, 98 | { 99 | "cell_type": "code", 100 | "execution_count": null, 101 | "metadata": {}, 102 | "outputs": [], 103 | "source": [ 104 | "import os\n", 105 | "from PIL import Image\n", 106 | "import numpy as np\n", 107 | "import uuid" 108 | ] 109 | }, 110 | { 111 | "cell_type": "code", 112 | "execution_count": 2, 113 | "metadata": {}, 114 | "outputs": [], 115 | "source": [ 116 | "def split_and_save(path):\n", 117 | " path = \"captchas/\" + path\n", 118 | " pix = np.array(Image.open(path).convert(\"L\"))\n", 119 | " # threshold image\n", 120 | " pix = (pix < 200) * 255\n", 121 | "\n", 122 | " col_ranges = [\n", 123 | " [2, 2 + 9],\n", 124 | " [18, 18 + 9],\n", 125 | " [34, 34 + 9],\n", 126 | " [50, 50 + 9]\n", 127 | " ]\n", 128 | " # split and save\n", 129 | " for col_range in col_ranges:\n", 130 | " letter = pix[:, col_range[0]: col_range[1]]\n", 131 | " im = Image.fromarray(np.uint8(letter))\n", 132 | " save_path = \"./letters/\" + str(uuid.uuid4()) + \".png\"\n", 133 | " im.save(save_path)\n" 134 | ] 135 | }, 136 | { 137 | "cell_type": "code", 138 | "execution_count": 3, 139 | "metadata": {}, 140 | "outputs": [ 141 | { 142 | "data": { 143 | "image/png": "iVBORw0KGgoAAAANSUhEUgAAAD4AAAAXCAIAAADcAGvtAAAB1ElEQVR4nO2WMU/CQBSA31mMBBKsmDACAzg4kLgykDiiiWFy7VZHWPgfdJQJViZDIo5GBlakMQ7QRGCjCaQlIVZtcy61QKHXUomNCd90bd+99+Xd9VqEMYb/yZ7XAu7ZqXuBzxgJ/CTZVpef+htMKGs9+aEpXrzpeUq5cP7QUUmBn97HQrbB9j74h8bTuCThOQOZHWACvc443VGNYKjIDVI4xvidrYygMoLKciELbH2MDaN16cBCJzSuTxWjpK70JLUlfekX0WDpSLkbkvvov2UimAmxNu126mOoU/mUf357OHuNBxPE3NlMBGcWpoDv1NmGcYa9jw/WoHF9qpjZoI7AywU6gLepbu+z7oQZzmq0n9xyA4GfoKqYlALLK7BVLHxW1TXuWb2OUQ7TJlJhzERw/BNVJ5z8S8e1WPqsqMtKDQ4uN136aKh3BoWO4lKPgLWPWV0YfLRclUjQPpA0wdVcAgQfs3pPUtfGraBxdRE1520WnE7cDIKP6YTRutIGedP0vj6SZ0xbZc/D9i+3rL2ACjKAoz1J8jGpUyc0gHX0YmT+6hjqY9TW85RyEbtvu3JTnZYBAKD1KJYd/TuQfBDe/a//PTt1L9ipe8EeQshrB5d8AxoATTXJypnaAAAAAElFTkSuQmCC\n", 144 | "text/plain": [ 145 | "" 146 | ] 147 | }, 148 | "execution_count": 3, 149 | "metadata": {}, 150 | "output_type": "execute_result" 151 | } 152 | ], 153 | "source": [ 154 | "Image.open(\"captchas/00438176-1f34-431d-b6ef-36fcbb8d953c.png\")" 155 | ] 156 | }, 157 | { 158 | "cell_type": "code", 159 | "execution_count": 4, 160 | "metadata": { 161 | "scrolled": true 162 | }, 163 | "outputs": [ 164 | { 165 | "name": "stdout", 166 | "output_type": "stream", 167 | "text": [ 168 | "00438176-1f34-431d-b6ef-36fcbb8d953c.png\n", 169 | "027f50b5-9cae-4e77-b9d7-dd97f85bb2c8.png\n", 170 | "0346e8e3-64c7-490b-867a-4114b1a05888.png\n", 171 | "04939206-43cb-47dc-aac7-0e4b36c08c4f.png\n", 172 | "067b9dd2-449e-4868-b9a3-bc1213f25035.png\n", 173 | "0793c96e-1c22-4a23-9339-147fe36c20c4.png\n", 174 | "079ff89c-ac91-4960-be78-c505731d52e3.png\n", 175 | "0addae1c-462a-40f4-8290-357f7dd4b24f.png\n", 176 | "0c5c0ab9-b9b3-43a1-87d8-e7673e518a03.png\n", 177 | "11ca34e7-f712-4b69-b453-c727ec547e44.png\n", 178 | "11efc48a-71ab-4a69-bf85-1a5495473451.png\n", 179 | "1240035b-2d22-4774-9e96-92de2aa5610f.png\n", 180 | "12d45039-5470-4f89-8e14-fad346f97dc2.png\n", 181 | "14e30f29-b785-4f9f-92b0-d9fb587dd2ce.png\n", 182 | "17623df6-399f-457f-bf55-a4d1c98f63fc.png\n", 183 | "1cc5d6d1-5c43-413b-a0d8-a755935c816b.png\n", 184 | "1df3616b-a00c-4d36-9157-b43d28f80e8a.png\n", 185 | "1f99fdaa-43cb-4871-ba35-b9e9ef53db47.png\n", 186 | "20047167-d7e4-4cd0-b2e1-046721a21bac.png\n", 187 | "212ae678-30f6-4e5d-8193-c5a562c49f07.png\n", 188 | "24467888-f89b-41cd-8b2d-77683b7d247a.png\n", 189 | "24c15218-9260-47d3-b827-d3f29c07d417.png\n", 190 | "2651fb7b-521c-4ef8-9e58-d524a86db666.png\n", 191 | "265952b8-1f3b-4b4f-8c6f-52f4b88117cf.png\n", 192 | "2df76314-a787-4aab-a5d3-f481cbd8bf12.png\n", 193 | "2f3a6325-9184-4f39-a551-b8250af12b8a.png\n", 194 | "31e8d34e-ba07-4ffe-97e1-52966cab3ead.png\n", 195 | "34736cf5-871c-4ca4-94e5-3ec784816676.png\n", 196 | "386b6324-2ca5-438a-8f04-795e18353dda.png\n", 197 | "38b3d292-7cc0-4d11-b048-192ea612ffb3.png\n", 198 | "39554b9c-b14e-48ea-aa4b-96b7722f6c39.png\n", 199 | "3ddf6579-2a59-4999-93c3-e81742e64615.png\n", 200 | "4433bc27-23a0-408e-81b0-490a362f2abf.png\n", 201 | "447be1d3-dbe5-4e5d-8bbd-62b01d40ebf6.png\n", 202 | "4643739b-e0f0-4e08-ab14-d89944319d5c.png\n", 203 | "471fe1f7-3d7a-4b21-8754-b8ef7c3910db.png\n", 204 | "4750c9c5-fd89-4eee-849a-8d08fdda10d7.png\n", 205 | "47c86809-65a4-4dc1-9f4c-1887559728e0.png\n", 206 | "49041894-7c5c-4df3-aa34-0d1d86cd2bfb.png\n", 207 | "558ecda1-b70d-4439-8c47-b8f4243a1202.png\n", 208 | "57efb97d-ec8f-43dd-a154-c40abfbb5c87.png\n", 209 | "58351e2e-6da5-4378-9677-f23e82bca56d.png\n", 210 | "5cbf066a-4fe9-423a-96b0-8bfa8867bcfe.png\n", 211 | "5d983161-02e4-479f-a7b2-1eb4816a2b41.png\n", 212 | "5e2448b5-a408-49bb-a1c0-b488828d3d23.png\n", 213 | "5e2e60bc-5a31-4134-ab4c-1da0b013ca38.png\n", 214 | "5fc1bf4b-28db-4582-980d-b1f51160ec23.png\n", 215 | "65fc9317-f8a9-4321-818c-64771c4db6a2.png\n", 216 | "67384b83-e283-472d-810b-9129a29083d1.png\n", 217 | "6764a52e-1e03-40aa-87a3-23f391985b2c.png\n", 218 | "6befd933-0b08-42e2-83ac-ba3fbcd50389.png\n", 219 | "6f7e1f12-8632-468b-abf4-8241a5ff9fb0.png\n", 220 | "7010afc1-b9a8-4ca6-b134-5097bda65572.png\n", 221 | "74f81104-f2a4-4427-af79-e6113be38e08.png\n", 222 | "784e5e14-f99e-4b7e-8cbb-1fee2a0494d0.png\n", 223 | "7aaa0522-85e0-4081-924c-e8a9ae3092d9.png\n", 224 | "7b9e64d8-8f76-45f9-ae90-3c2746fe12ab.png\n", 225 | "7bc99fa1-cc84-41d3-9975-2e9323a43b08.png\n", 226 | "7d812f0c-df2f-4216-8f9a-2cd101b68ac9.png\n", 227 | "7ec301f7-2464-4260-9393-1b07b1ab9d92.png\n", 228 | "80449e59-44ef-4dd8-a8ad-9988874945bb.png\n", 229 | "86a7fffc-eb47-4710-844f-f6ef55627200.png\n", 230 | "8792c038-e2f2-4ed1-ad2d-3a14f32b104a.png\n", 231 | "8ae3f2b3-bba0-4a70-be13-33ec5e93cc14.png\n", 232 | "8be1c798-56f7-4b86-be6f-8917eaf0012a.png\n", 233 | "8caca8ed-c010-4dce-b648-0ec609e26eda.png\n", 234 | "8e020f32-b33a-471a-bf1f-982aa2b32411.png\n", 235 | "8eb59138-65a5-460e-9bfa-02241087e6a8.png\n", 236 | "8fff98ed-7bb7-46c6-86c0-1b80dc5e2f9a.png\n", 237 | "90165165-2b02-468e-ba7b-220f3ea72cdb.png\n", 238 | "92083e65-03eb-411a-85b9-699ceb0808be.png\n", 239 | "9464b3ca-46eb-444b-a018-b1c6212d6bda.png\n", 240 | "95dd3dd2-627e-4973-be82-ed61fea45b0b.png\n", 241 | "97a464dc-2b0c-484b-a20e-d2e78705ad5d.png\n", 242 | "98217bf4-22f4-4c89-94a1-c912ef683d46.png\n", 243 | "9852a671-c4a2-4381-928f-79e3d3f8a642.png\n", 244 | "9d151b4a-63f0-446f-aaa0-344cca12ea56.png\n", 245 | "9de290f2-68c0-4895-a952-da0397dd7158.png\n", 246 | "9fe04dc6-9f93-4e9e-82c0-2490b53c1a2b.png\n", 247 | "a33fa702-6454-4c27-a47d-4c8ecb977b37.png\n", 248 | "a342dc64-1822-4c57-8c31-32c14fb740e9.png\n", 249 | "a6943b18-fbb1-486b-ab3c-ec764bcc35d8.png\n", 250 | "a900c451-9499-4714-8253-1f6aa45de3b8.png\n", 251 | "a9af1082-41d6-41d3-8ba2-630ac030c62a.png\n", 252 | "ac934d88-f5f5-4d12-b277-29aa620a3e18.png\n", 253 | "ad55d803-ec96-49be-bdde-e506a6d01166.png\n", 254 | "b0f60147-5ddb-40af-8b50-affa57b6690d.png\n", 255 | "b51f97c5-2f50-40cf-8206-4c4ad388e288.png\n", 256 | "b5e06b72-fed3-4950-826d-ba3abc06aeaa.png\n", 257 | "b8975785-f730-4e11-bfd3-29f28b63784c.png\n", 258 | "b9236b8a-8c5b-4fd6-ac72-e764d39de488.png\n", 259 | "b9af97f7-ffb0-4c4a-b1ec-6a43cc62e435.png\n", 260 | "b9d963e7-fcc2-42f9-bbe9-ac00ff2a2af2.png\n", 261 | "bb5f94f7-3d41-4256-89ec-1b91929bb17e.png\n", 262 | "be267d76-90b9-47b7-bb70-1fe101b4a2ed.png\n", 263 | "beceb7e2-984f-49b7-8730-f684ee48fe41.png\n", 264 | "c19309ce-d9f1-46a9-a10e-00de037aa518.png\n", 265 | "c4df5fa0-0db8-4493-823a-60ae7fd9e904.png\n", 266 | "c6143dd8-15ed-4c8d-92f0-c1c75480d8ea.png\n", 267 | "c67c01a5-9735-4fd4-be93-ec045843e30b.png\n", 268 | "c6879d95-1051-42ca-92d4-c283be3ce647.png\n", 269 | "c98e9ed1-4b4b-470e-9833-8573563880f8.png\n", 270 | "cb033795-2548-48d1-ad76-0c1b1e1a8ade.png\n", 271 | "cd417464-2145-4f37-9b9a-2af7053d70e1.png\n", 272 | "cda58b75-400a-4600-99fc-10212ca9ccec.png\n", 273 | "cdebcbe2-cd65-4b46-8984-3b4a6bdc2b96.png\n", 274 | "ce1fe204-f0f2-43b9-9a4f-6c98a173eb84.png\n", 275 | "d1be1b45-882b-4411-a0e5-8d54fbf0accc.png\n", 276 | "d242500a-243c-4073-9436-4209cbcf8d2f.png\n", 277 | "d31686aa-d5f0-4186-b6e6-1a8158b76660.png\n", 278 | "d5e29b32-78f9-428d-9cac-bd243b5f3bb8.png\n", 279 | "d719ae71-96ca-43ad-ab11-e89fe6400c4d.png\n", 280 | "d7d2ab99-d284-46d2-bf4e-30e5433e234f.png\n", 281 | "d8d153ce-b630-4bc0-9d3b-5716cb35f5ca.png\n", 282 | "da8689d2-484b-4bf0-937a-25921dc837cc.png\n", 283 | "dcd319c2-b84d-44de-ad3f-d573036c8b65.png\n", 284 | "de85981a-de38-47f4-b308-15d541a6505c.png\n", 285 | "e02b2e7a-4e59-4031-a283-1a7c94a207e5.png\n", 286 | "e25b7f06-6c18-478d-81f2-80f9da2c6a3d.png\n", 287 | "eb3e26e4-7208-47f3-82e4-282f50a3ccb6.png\n", 288 | "efafba71-b3b6-4c06-9c48-a03df0f1d1ab.png\n", 289 | "f28df1fa-914a-4a9f-802a-9c4eba46b4c8.png\n", 290 | "f2d8f56d-f2d5-4c1f-b108-f9b35feb858f.png\n", 291 | "f40242fe-a1a1-4712-b0bc-68ce922a4e33.png\n", 292 | "f58bb591-7684-440f-996e-ecf413e3f018.png\n", 293 | "f5bea90a-e819-4a61-992f-1e1ccafd28ab.png\n", 294 | "f6909361-50ec-4ab8-81bf-a874fc006890.png\n", 295 | "f7bacb21-bb12-4e11-b4f9-51c65ef6ddac.png\n", 296 | "f805e6c6-5931-443e-ba71-bf230ae8fd09.png\n", 297 | "f81dc072-7c66-44ad-bf66-996280f37274.png\n", 298 | "fac23036-6148-4aa9-bb56-06a0a2e0ee91.png\n", 299 | "fbdb62f0-8cce-4744-8357-76e2c0bebffc.png\n", 300 | "fde50a19-5e42-41d2-b048-3b5daf7455f8.png\n" 301 | ] 302 | } 303 | ], 304 | "source": [ 305 | "im_paths = filter(lambda fn: os.path.splitext(fn)[1].lower() == '.png',\n", 306 | " os.listdir(\"captchas\"))\n", 307 | "\n", 308 | "for im_path in im_paths:\n", 309 | " print(im_path)\n", 310 | " split_and_save(im_path)" 311 | ] 312 | }, 313 | { 314 | "cell_type": "code", 315 | "execution_count": 8, 316 | "metadata": {}, 317 | "outputs": [], 318 | "source": [ 319 | "from sklearn.neighbors import KNeighborsClassifier\n", 320 | "import pickle\n", 321 | "\n", 322 | "\n", 323 | "def load_dataset():\n", 324 | " X = []\n", 325 | " y = []\n", 326 | "\n", 327 | " for i in range(60):\n", 328 | " path = \"./dataset/%d%d.png\" % (i / 6, i % 6 + 1)\n", 329 | " pix = np.array(Image.open(path).convert(\"L\"))\n", 330 | " # print(pix.reshape(8*20).shape)\n", 331 | " X.append(pix.reshape(23*9))\n", 332 | " y.append(i/6)\n", 333 | " return np.array(X), np.array(y)" 334 | ] 335 | }, 336 | { 337 | "cell_type": "code", 338 | "execution_count": 9, 339 | "metadata": {}, 340 | "outputs": [ 341 | { 342 | "data": { 343 | "text/plain": [ 344 | "KNeighborsClassifier(algorithm='auto', leaf_size=30, metric='minkowski',\n", 345 | " metric_params=None, n_jobs=1, n_neighbors=5, p=2,\n", 346 | " weights='uniform')" 347 | ] 348 | }, 349 | "execution_count": 9, 350 | "metadata": {}, 351 | "output_type": "execute_result" 352 | } 353 | ], 354 | "source": [ 355 | "X, y = load_dataset()\n", 356 | "knn = KNeighborsClassifier(n_neighbors=5)\n", 357 | "knn.fit(X, y.astype(int))" 358 | ] 359 | }, 360 | { 361 | "cell_type": "code", 362 | "execution_count": 14, 363 | "metadata": {}, 364 | "outputs": [], 365 | "source": [ 366 | "with open(\"captcha_model.pickle\", \"wb\") as f:\n", 367 | " pickle.dump(knn, f)" 368 | ] 369 | }, 370 | { 371 | "cell_type": "code", 372 | "execution_count": 15, 373 | "metadata": {}, 374 | "outputs": [], 375 | "source": [ 376 | "def get_model():\n", 377 | " with open(\"captcha_model.pickle\", \"rb\") as f:\n", 378 | " return pickle.load(f)\n", 379 | "\n", 380 | "\n", 381 | "def captcha_recognize(path):\n", 382 | " model = get_model()\n", 383 | " \n", 384 | " pix = np.array(Image.open(path).convert(\"L\"))\n", 385 | " # threshold image\n", 386 | " pix = (pix < 200) * 255\n", 387 | "\n", 388 | " col_ranges = [\n", 389 | " [2, 2 + 9],\n", 390 | " [18, 18 + 9],\n", 391 | " [34, 34 + 9],\n", 392 | " [50, 50 + 9]\n", 393 | " ]\n", 394 | " # split and save\n", 395 | " letters = []\n", 396 | " for col_range in col_ranges:\n", 397 | " letter = pix[:, col_range[0]: col_range[1]]\n", 398 | " letters.append(letter.reshape(9*23))\n", 399 | " \n", 400 | " res = model.predict(letters)\n", 401 | " return \"\".join([str(ch) for ch in res])" 402 | ] 403 | }, 404 | { 405 | "cell_type": "code", 406 | "execution_count": 16, 407 | "metadata": {}, 408 | "outputs": [ 409 | { 410 | "data": { 411 | "text/plain": [ 412 | "'7317'" 413 | ] 414 | }, 415 | "execution_count": 16, 416 | "metadata": {}, 417 | "output_type": "execute_result" 418 | } 419 | ], 420 | "source": [ 421 | "captcha_recognize(\"captchas/00438176-1f34-431d-b6ef-36fcbb8d953c.png\")" 422 | ] 423 | } 424 | ], 425 | "metadata": { 426 | "kernelspec": { 427 | "display_name": "Python 3", 428 | "language": "python", 429 | "name": "python3" 430 | }, 431 | "language_info": { 432 | "codemirror_mode": { 433 | "name": "ipython", 434 | "version": 3 435 | }, 436 | "file_extension": ".py", 437 | "mimetype": "text/x-python", 438 | "name": "python", 439 | "nbconvert_exporter": "python", 440 | "pygments_lexer": "ipython3", 441 | "version": "3.6.5" 442 | } 443 | }, 444 | "nbformat": 4, 445 | "nbformat_minor": 2 446 | } 447 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /THS/trader_test/test_connection.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import pywinauto\n", 10 | "from pywinauto import clipboard\n", 11 | "import time" 12 | ] 13 | }, 14 | { 15 | "cell_type": "code", 16 | "execution_count": 2, 17 | "metadata": {}, 18 | "outputs": [ 19 | { 20 | "name": "stderr", 21 | "output_type": "stream", 22 | "text": [ 23 | "C:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py:1032: UserWarning: 32-bit application should be automated using 32-bit Python (you use 64-bit Python)\n", 24 | " UserWarning)\n" 25 | ] 26 | } 27 | ], 28 | "source": [ 29 | "app = pywinauto.Application().connect(path=r\"C:\\同花顺软件\\同花顺\\xiadan.exe\",timeout=10)" 30 | ] 31 | }, 32 | { 33 | "cell_type": "code", 34 | "execution_count": 3, 35 | "metadata": {}, 36 | "outputs": [], 37 | "source": [ 38 | "main = app.top_window()" 39 | ] 40 | }, 41 | { 42 | "cell_type": "code", 43 | "execution_count": 4, 44 | "metadata": {}, 45 | "outputs": [], 46 | "source": [ 47 | "def get_left_menus_handle():\n", 48 | " while True:\n", 49 | " try:\n", 50 | " handle = main.window(\n", 51 | " control_id=129,\n", 52 | " class_name='SysTreeView32'\n", 53 | " )\n", 54 | " # sometime can't find handle ready, must retry\n", 55 | " handle.wait('ready', 2)\n", 56 | " return handle\n", 57 | " except:\n", 58 | " pass" 59 | ] 60 | }, 61 | { 62 | "cell_type": "markdown", 63 | "metadata": {}, 64 | "source": [ 65 | "## 查询持有股票" 66 | ] 67 | }, 68 | { 69 | "cell_type": "code", 70 | "execution_count": 5, 71 | "metadata": {}, 72 | "outputs": [ 73 | { 74 | "data": { 75 | "text/plain": [ 76 | "" 77 | ] 78 | }, 79 | "execution_count": 5, 80 | "metadata": {}, 81 | "output_type": "execute_result" 82 | } 83 | ], 84 | "source": [ 85 | "get_left_menus_handle().get_item(['查询[F4]', '资金股票']).click()" 86 | ] 87 | }, 88 | { 89 | "cell_type": "code", 90 | "execution_count": 7, 91 | "metadata": {}, 92 | "outputs": [], 93 | "source": [ 94 | "from captcha_recognize import captcha_recognize\n", 95 | "import time" 96 | ] 97 | }, 98 | { 99 | "cell_type": "code", 100 | "execution_count": 13, 101 | "metadata": {}, 102 | "outputs": [ 103 | { 104 | "name": "stdout", 105 | "output_type": "stream", 106 | "text": [ 107 | "captcha--> 6797\n", 108 | "明细\t证券代码\t证券名称\t股票余额\t可用余额\t冻结数量\t盈亏\t成本价\t盈亏比例(%)\t市价\t市值\t交易市场\t股东帐户\t实际数量\t可申赎数量\t资讯\t\n", 109 | "\t000333\t美的集团\t200\t200\t0\t5623.08\t18.985\t148.10\t47.10\t9420.00\t深圳A股\t00101106569\t200\t200\t\t\n", 110 | "\t000651\t格力电器\t1100\t1100\t0\t-2319.30\t47.958\t-4.40\t45.85\t50435.00\t深圳A股\t00101106569\t1100\t1100\t\t\n", 111 | "\t162411\t华宝油气\t1000\t800\t200\t-116.62\t0.618\t-18.88\t0.50\t501.00\t深圳A股\t00101106569\t1000\t800\t\t\n", 112 | "\t600048\t保利地产\t3800\t3800\t0\t-1955.94\t13.735\t-3.75\t13.22\t50236.00\t上海A股\tA476826692\t3800\t3800\t\t\n", 113 | "\t601155\t新城控股\t1600\t1600\t0\t13465.48\t30.634\t27.47\t39.05\t62480.00\t上海A股\tA476826692\t1600\t1600\t\t\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\n" 114 | ] 115 | } 116 | ], 117 | "source": [ 118 | "grid = main.window(control_id=0x417, class_name='CVirtualGridCtrl')\n", 119 | "\n", 120 | "grid.set_focus().right_click() # 模拟右键\n", 121 | "pywinauto.keyboard.SendKeys('c') # 模拟发送C\n", 122 | "\n", 123 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 124 | "time.sleep(0.1)\n", 125 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 126 | "time.sleep(0.1)\n", 127 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 128 | "time.sleep(0.1)\n", 129 | "pywinauto.keyboard.SendKeys(\"{ENTER}\")\n", 130 | "\n", 131 | "file_path = \"tmp.png\"\n", 132 | "\n", 133 | "while True:\n", 134 | " app.top_window().window(\n", 135 | " control_id=0x965,\n", 136 | " class_name='Static'\n", 137 | " ).CaptureAsImage().save(file_path) #保存验证码\n", 138 | "\n", 139 | " captcha_num = captcha_recognize(file_path) # 识别验证码\n", 140 | "\n", 141 | " app.top_window().window(\n", 142 | " control_id=0x964,\n", 143 | " class_name='Edit'\n", 144 | " ).set_text(captcha_num) # 模拟输入验证码\n", 145 | "\n", 146 | " app.top_window().set_focus()\n", 147 | " pywinauto.keyboard.SendKeys(\"{ENTER}\") # 模拟发送enter,点击确定\n", 148 | "\n", 149 | " try:\n", 150 | " print(app.top_window().window(control_id=0x966, class_name='Static').window_text())\n", 151 | " except:\n", 152 | " break\n", 153 | " time.sleep(0.1)\n", 154 | "\n", 155 | "print(clipboard.GetData()) # " 156 | ] 157 | }, 158 | { 159 | "cell_type": "code", 160 | "execution_count": 14, 161 | "metadata": {}, 162 | "outputs": [], 163 | "source": [ 164 | "import pandas as pd\n", 165 | "import io" 166 | ] 167 | }, 168 | { 169 | "cell_type": "code", 170 | "execution_count": 15, 171 | "metadata": {}, 172 | "outputs": [ 173 | { 174 | "data": { 175 | "text/html": [ 176 | "
\n", 177 | "\n", 190 | "\n", 191 | " \n", 192 | " \n", 193 | " \n", 194 | " \n", 195 | " \n", 196 | " \n", 197 | " \n", 198 | " \n", 199 | " \n", 200 | " \n", 201 | " \n", 202 | " \n", 203 | " \n", 204 | " \n", 205 | " \n", 206 | " \n", 207 | " \n", 208 | " \n", 209 | " \n", 210 | " \n", 211 | " \n", 212 | " \n", 213 | " \n", 214 | " \n", 215 | " \n", 216 | " \n", 217 | " \n", 218 | " \n", 219 | " \n", 220 | " \n", 221 | " \n", 222 | " \n", 223 | " \n", 224 | " \n", 225 | " \n", 226 | " \n", 227 | " \n", 228 | " \n", 229 | " \n", 230 | " \n", 231 | " \n", 232 | " \n", 233 | " \n", 234 | " \n", 235 | " \n", 236 | " \n", 237 | " \n", 238 | " \n", 239 | " \n", 240 | " \n", 241 | " \n", 242 | " \n", 243 | " \n", 244 | " \n", 245 | " \n", 246 | " \n", 247 | " \n", 248 | " \n", 249 | " \n", 250 | " \n", 251 | " \n", 252 | " \n", 253 | " \n", 254 | " \n", 255 | " \n", 256 | " \n", 257 | " \n", 258 | " \n", 259 | " \n", 260 | " \n", 261 | " \n", 262 | " \n", 263 | " \n", 264 | " \n", 265 | " \n", 266 | " \n", 267 | " \n", 268 | " \n", 269 | " \n", 270 | " \n", 271 | " \n", 272 | " \n", 273 | " \n", 274 | " \n", 275 | " \n", 276 | " \n", 277 | " \n", 278 | " \n", 279 | " \n", 280 | " \n", 281 | " \n", 282 | " \n", 283 | " \n", 284 | " \n", 285 | " \n", 286 | " \n", 287 | " \n", 288 | " \n", 289 | " \n", 290 | " \n", 291 | " \n", 292 | " \n", 293 | " \n", 294 | " \n", 295 | " \n", 296 | " \n", 297 | " \n", 298 | " \n", 299 | " \n", 300 | " \n", 301 | " \n", 302 | " \n", 303 | " \n", 304 | " \n", 305 | " \n", 306 | " \n", 307 | " \n", 308 | " \n", 309 | " \n", 310 | " \n", 311 | " \n", 312 | " \n", 313 | " \n", 314 | " \n", 315 | "
明细证券代码证券名称股票余额可用余额冻结数量盈亏成本价盈亏比例(%)市价市值交易市场股东帐户实际数量可申赎数量资讯Unnamed: 16
0333美的集团20020005623.0818.985148.1047.109420.0深圳A股00101106569200200
1651格力电器110011000-2319.3047.958-4.4045.8550435.0深圳A股0010110656911001100
2162411华宝油气1000800200-116.620.618-18.880.50501.0深圳A股001011065691000800
3600048保利地产380038000-1955.9413.735-3.7513.2250236.0上海A股A47682669238003800
4601155新城控股16001600013465.4830.63427.4739.0562480.0上海A股A47682669216001600
\n", 316 | "
" 317 | ], 318 | "text/plain": [ 319 | " 明细 证券代码 证券名称 股票余额 可用余额 冻结数量 盈亏 成本价 盈亏比例(%) 市价 \\\n", 320 | "0 333 美的集团 200 200 0 5623.08 18.985 148.10 47.10 \n", 321 | "1 651 格力电器 1100 1100 0 -2319.30 47.958 -4.40 45.85 \n", 322 | "2 162411 华宝油气 1000 800 200 -116.62 0.618 -18.88 0.50 \n", 323 | "3 600048 保利地产 3800 3800 0 -1955.94 13.735 -3.75 13.22 \n", 324 | "4 601155 新城控股 1600 1600 0 13465.48 30.634 27.47 39.05 \n", 325 | "\n", 326 | " 市值 交易市场 股东帐户 实际数量 可申赎数量 资讯 Unnamed: 16 \n", 327 | "0 9420.0 深圳A股 00101106569 200 200 \n", 328 | "1 50435.0 深圳A股 00101106569 1100 1100 \n", 329 | "2 501.0 深圳A股 00101106569 1000 800 \n", 330 | "3 50236.0 上海A股 A476826692 3800 3800 \n", 331 | "4 62480.0 上海A股 A476826692 1600 1600 " 332 | ] 333 | }, 334 | "execution_count": 15, 335 | "metadata": {}, 336 | "output_type": "execute_result" 337 | } 338 | ], 339 | "source": [ 340 | "data = clipboard.GetData()\n", 341 | "df = pd.read_csv(io.StringIO(data),\n", 342 | " delimiter='\\t',\n", 343 | " na_filter=False)\n", 344 | "df" 345 | ] 346 | }, 347 | { 348 | "cell_type": "markdown", 349 | "metadata": {}, 350 | "source": [ 351 | "## 模拟买入" 352 | ] 353 | }, 354 | { 355 | "cell_type": "code", 356 | "execution_count": 18, 357 | "metadata": {}, 358 | "outputs": [ 359 | { 360 | "data": { 361 | "text/plain": [ 362 | "" 363 | ] 364 | }, 365 | "execution_count": 18, 366 | "metadata": {}, 367 | "output_type": "execute_result" 368 | } 369 | ], 370 | "source": [ 371 | "get_left_menus_handle().get_item(['买入[F1]']).click()" 372 | ] 373 | }, 374 | { 375 | "cell_type": "code", 376 | "execution_count": 19, 377 | "metadata": {}, 378 | "outputs": [], 379 | "source": [ 380 | "stock_id = \"162411\"" 381 | ] 382 | }, 383 | { 384 | "cell_type": "code", 385 | "execution_count": 28, 386 | "metadata": {}, 387 | "outputs": [ 388 | { 389 | "name": "stdout", 390 | "output_type": "stream", 391 | "text": [ 392 | "您的买入委托已成功提交,合同编号:1025482214。\n" 393 | ] 394 | } 395 | ], 396 | "source": [ 397 | "main.window(control_id=0x408, class_name=\"Edit\").set_text(stock_id) # 设置股票代码\n", 398 | "\n", 399 | "main.window(control_id=0x409, class_name=\"Edit\").set_text(\"0.492\") # 设置价格\n", 400 | "\n", 401 | "main.window(control_id=0x40A, class_name=\"Edit\").set_text(\"100\") # 设置股数目\n", 402 | "\n", 403 | "main.window(control_id=0x3EE, class_name=\"Button\").click() # 点击买入\n", 404 | "\n", 405 | "app.top_window().window(control_id=0x6, class_name='Button').click() # 确定买入\n", 406 | "app.top_window().set_focus()\n", 407 | "print(app.top_window().window(control_id=0x3EC, class_name='Static').window_text())\n", 408 | "app.top_window().set_focus()\n", 409 | "app.top_window().window(control_id=0x2, class_name='Button').click() # 确定" 410 | ] 411 | }, 412 | { 413 | "cell_type": "markdown", 414 | "metadata": {}, 415 | "source": [ 416 | "## 模拟买出" 417 | ] 418 | }, 419 | { 420 | "cell_type": "code", 421 | "execution_count": 29, 422 | "metadata": {}, 423 | "outputs": [ 424 | { 425 | "data": { 426 | "text/plain": [ 427 | "" 428 | ] 429 | }, 430 | "execution_count": 29, 431 | "metadata": {}, 432 | "output_type": "execute_result" 433 | } 434 | ], 435 | "source": [ 436 | "get_left_menus_handle().get_item(['卖出[F2]']).click()" 437 | ] 438 | }, 439 | { 440 | "cell_type": "code", 441 | "execution_count": 31, 442 | "metadata": {}, 443 | "outputs": [ 444 | { 445 | "name": "stdout", 446 | "output_type": "stream", 447 | "text": [ 448 | "您的卖出委托已成功提交,合同编号:1025476425。\n" 449 | ] 450 | } 451 | ], 452 | "source": [ 453 | "main.window(control_id=0x408, class_name=\"Edit\").set_text(stock_id) # 设置股票代码\n", 454 | "\n", 455 | "main.window(control_id=0x409, class_name=\"Edit\").set_text(\"0.510\") # 设置价格\n", 456 | "\n", 457 | "main.window(control_id=0x40A, class_name=\"Edit\").set_text(\"100\") # 设置股数目\n", 458 | "\n", 459 | "main.window(control_id=0x3EE, class_name=\"Button\").click() # 点击卖出\n", 460 | "\n", 461 | "app.top_window().window(control_id=0x6, class_name='Button').click() # 确定卖出\n", 462 | "app.top_window().set_focus()\n", 463 | "print(app.top_window().window(control_id=0x3EC, class_name='Static').window_text())\n", 464 | "app.top_window().set_focus()\n", 465 | "app.top_window().window(control_id=0x2, class_name='Button').click() # 确定" 466 | ] 467 | }, 468 | { 469 | "cell_type": "markdown", 470 | "metadata": {}, 471 | "source": [ 472 | "## 获取当日委托" 473 | ] 474 | }, 475 | { 476 | "cell_type": "code", 477 | "execution_count": 32, 478 | "metadata": {}, 479 | "outputs": [ 480 | { 481 | "data": { 482 | "text/plain": [ 483 | "" 484 | ] 485 | }, 486 | "execution_count": 32, 487 | "metadata": {}, 488 | "output_type": "execute_result" 489 | } 490 | ], 491 | "source": [ 492 | "get_left_menus_handle().get_item(['查询[F4]', '当日委托']).click()" 493 | ] 494 | }, 495 | { 496 | "cell_type": "code", 497 | "execution_count": 44, 498 | "metadata": {}, 499 | "outputs": [ 500 | { 501 | "name": "stdout", 502 | "output_type": "stream", 503 | "text": [ 504 | "\n" 505 | ] 506 | } 507 | ], 508 | "source": [ 509 | "print(app.top_window().window(control_id=0x966, class_name='Static').window_text())" 510 | ] 511 | }, 512 | { 513 | "cell_type": "code", 514 | "execution_count": 50, 515 | "metadata": {}, 516 | "outputs": [ 517 | { 518 | "data": { 519 | "text/html": [ 520 | "
\n", 521 | "\n", 534 | "\n", 535 | " \n", 536 | " \n", 537 | " \n", 538 | " \n", 539 | " \n", 540 | " \n", 541 | " \n", 542 | " \n", 543 | " \n", 544 | " \n", 545 | " \n", 546 | " \n", 547 | " \n", 548 | " \n", 549 | " \n", 550 | " \n", 551 | " \n", 552 | " \n", 553 | " \n", 554 | " \n", 555 | " \n", 556 | " \n", 557 | " \n", 558 | " \n", 559 | " \n", 560 | " \n", 561 | " \n", 562 | " \n", 563 | " \n", 564 | " \n", 565 | " \n", 566 | " \n", 567 | " \n", 568 | " \n", 569 | " \n", 570 | " \n", 571 | " \n", 572 | " \n", 573 | " \n", 574 | " \n", 575 | " \n", 576 | " \n", 577 | " \n", 578 | " \n", 579 | " \n", 580 | " \n", 581 | " \n", 582 | " \n", 583 | " \n", 584 | " \n", 585 | " \n", 586 | " \n", 587 | " \n", 588 | " \n", 589 | " \n", 590 | " \n", 591 | " \n", 592 | " \n", 593 | " \n", 594 | " \n", 595 | " \n", 596 | " \n", 597 | " \n", 598 | " \n", 599 | " \n", 600 | " \n", 601 | " \n", 602 | " \n", 603 | " \n", 604 | " \n", 605 | " \n", 606 | " \n", 607 | " \n", 608 | " \n", 609 | " \n", 610 | " \n", 611 | " \n", 612 | " \n", 613 | " \n", 614 | " \n", 615 | " \n", 616 | " \n", 617 | " \n", 618 | " \n", 619 | " \n", 620 | " \n", 621 | " \n", 622 | " \n", 623 | " \n", 624 | " \n", 625 | " \n", 626 | " \n", 627 | " \n", 628 | " \n", 629 | " \n", 630 | " \n", 631 | " \n", 632 | " \n", 633 | " \n", 634 | " \n", 635 | " \n", 636 | " \n", 637 | " \n", 638 | " \n", 639 | " \n", 640 | " \n", 641 | " \n", 642 | " \n", 643 | " \n", 644 | " \n", 645 | " \n", 646 | " \n", 647 | " \n", 648 | " \n", 649 | " \n", 650 | " \n", 651 | " \n", 652 | " \n", 653 | " \n", 654 | " \n", 655 | " \n", 656 | " \n", 657 | " \n", 658 | " \n", 659 | " \n", 660 | " \n", 661 | " \n", 662 | " \n", 663 | " \n", 664 | " \n", 665 | " \n", 666 | " \n", 667 | " \n", 668 | " \n", 669 | " \n", 670 | " \n", 671 | " \n", 672 | " \n", 673 | " \n", 674 | " \n", 675 | " \n", 676 | " \n", 677 | " \n", 678 | " \n", 679 | " \n", 680 | " \n", 681 | " \n", 682 | " \n", 683 | "
备注操作证券代码证券名称委托数量成交数量委托价格成交均价撤消数量委托时间委托日期合同编号Unnamed: 12
0未成交卖出162411华宝油气10000.5100.000010:33:28201903141025353126
1未成交卖出162411华宝油气10000.5100.000010:32:46201903141025366444
2全部成交买入162411华宝油气1001000.5010.500010:56:40201903141025459094
3全部成交买入162411华宝油气1001000.5010.501010:59:10201903141025464948
4全部成交买入162411华宝油气1001000.5010.500011:00:59201903141025470854
5未成交卖出162411华宝油气10000.5100.000011:05:45201903141025471336
6未成交卖出162411华宝油气10000.5100.000011:06:24201903141025476425
7未成交买入162411华宝油气10000.4920.000011:05:28201903141025482214
\n", 684 | "
" 685 | ], 686 | "text/plain": [ 687 | " 备注 操作 证券代码 证券名称 委托数量 成交数量 委托价格 成交均价 撤消数量 委托时间 委托日期 \\\n", 688 | "0 未成交 卖出 162411 华宝油气 100 0 0.510 0.000 0 10:33:28 20190314 \n", 689 | "1 未成交 卖出 162411 华宝油气 100 0 0.510 0.000 0 10:32:46 20190314 \n", 690 | "2 全部成交 买入 162411 华宝油气 100 100 0.501 0.500 0 10:56:40 20190314 \n", 691 | "3 全部成交 买入 162411 华宝油气 100 100 0.501 0.501 0 10:59:10 20190314 \n", 692 | "4 全部成交 买入 162411 华宝油气 100 100 0.501 0.500 0 11:00:59 20190314 \n", 693 | "5 未成交 卖出 162411 华宝油气 100 0 0.510 0.000 0 11:05:45 20190314 \n", 694 | "6 未成交 卖出 162411 华宝油气 100 0 0.510 0.000 0 11:06:24 20190314 \n", 695 | "7 未成交 买入 162411 华宝油气 100 0 0.492 0.000 0 11:05:28 20190314 \n", 696 | "\n", 697 | " 合同编号 Unnamed: 12 \n", 698 | "0 1025353126 \n", 699 | "1 1025366444 \n", 700 | "2 1025459094 \n", 701 | "3 1025464948 \n", 702 | "4 1025470854 \n", 703 | "5 1025471336 \n", 704 | "6 1025476425 \n", 705 | "7 1025482214 " 706 | ] 707 | }, 708 | "execution_count": 50, 709 | "metadata": {}, 710 | "output_type": "execute_result" 711 | } 712 | ], 713 | "source": [ 714 | "grid = main.window(\n", 715 | " control_id=0x417,\n", 716 | " class_name='CVirtualGridCtrl'\n", 717 | ")\n", 718 | "\n", 719 | "grid.set_focus().right_click() # 模拟右键\n", 720 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 721 | "time.sleep(0.1)\n", 722 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 723 | "time.sleep(0.1)\n", 724 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 725 | "time.sleep(0.1)\n", 726 | "pywinauto.keyboard.SendKeys(\"{ENTER}\")\n", 727 | "\n", 728 | "file_path = \"tmp.png\"\n", 729 | "while True:\n", 730 | " app.top_window().window(\n", 731 | " control_id=0x965,\n", 732 | " class_name='Static'\n", 733 | " ).CaptureAsImage().save(file_path) #保存验证码\n", 734 | "\n", 735 | " captcha_num = captcha_recognize(file_path) # 识别验证码\n", 736 | "\n", 737 | " app.top_window().window(\n", 738 | " control_id=0x964,\n", 739 | " class_name='Edit'\n", 740 | " ).set_text(captcha_num) # 模拟输入验证码\n", 741 | "\n", 742 | " app.top_window().set_focus()\n", 743 | " pywinauto.keyboard.SendKeys(\"{ENTER}\") # 模拟发送enter,点击确定\n", 744 | "\n", 745 | " try:\n", 746 | " print(app.top_window().window(control_id=0x966, class_name='Static').window_text())\n", 747 | " except:\n", 748 | " break\n", 749 | " time.sleep(0.1)\n", 750 | " \n", 751 | "data = clipboard.GetData()\n", 752 | "df = pd.read_csv(io.StringIO(data),\n", 753 | " delimiter='\\t',\n", 754 | " na_filter=False)\n", 755 | "df" 756 | ] 757 | }, 758 | { 759 | "cell_type": "markdown", 760 | "metadata": {}, 761 | "source": [ 762 | "## 获取当日成交" 763 | ] 764 | }, 765 | { 766 | "cell_type": "code", 767 | "execution_count": 51, 768 | "metadata": {}, 769 | "outputs": [ 770 | { 771 | "data": { 772 | "text/plain": [ 773 | "" 774 | ] 775 | }, 776 | "execution_count": 51, 777 | "metadata": {}, 778 | "output_type": "execute_result" 779 | } 780 | ], 781 | "source": [ 782 | "get_left_menus_handle().get_item(['查询[F4]', '当日成交']).click()" 783 | ] 784 | }, 785 | { 786 | "cell_type": "code", 787 | "execution_count": 53, 788 | "metadata": {}, 789 | "outputs": [ 790 | { 791 | "data": { 792 | "text/html": [ 793 | "
\n", 794 | "\n", 807 | "\n", 808 | " \n", 809 | " \n", 810 | " \n", 811 | " \n", 812 | " \n", 813 | " \n", 814 | " \n", 815 | " \n", 816 | " \n", 817 | " \n", 818 | " \n", 819 | " \n", 820 | " \n", 821 | " \n", 822 | " \n", 823 | " \n", 824 | " \n", 825 | " \n", 826 | " \n", 827 | " \n", 828 | " \n", 829 | " \n", 830 | " \n", 831 | " \n", 832 | " \n", 833 | " \n", 834 | " \n", 835 | " \n", 836 | " \n", 837 | " \n", 838 | " \n", 839 | " \n", 840 | " \n", 841 | " \n", 842 | " \n", 843 | " \n", 844 | " \n", 845 | " \n", 846 | " \n", 847 | " \n", 848 | " \n", 849 | " \n", 850 | " \n", 851 | " \n", 852 | " \n", 853 | " \n", 854 | " \n", 855 | " \n", 856 | " \n", 857 | " \n", 858 | " \n", 859 | " \n", 860 | " \n", 861 | " \n", 862 | " \n", 863 | " \n", 864 | " \n", 865 | " \n", 866 | " \n", 867 | " \n", 868 | " \n", 869 | " \n", 870 | " \n", 871 | " \n", 872 | "
成交时间证券代码证券名称操作成交数量成交均价成交金额合同编号成交编号撤单数量股票余额Unnamed: 11
010:56:43162411华宝油气买入1000.50050.01025459094261563709901100
110:59:12162411华宝油气买入1000.50150.11025464948261564543401200
211:01:06162411华宝油气买入1000.50050.01025470854261565163201300
\n", 873 | "
" 874 | ], 875 | "text/plain": [ 876 | " 成交时间 证券代码 证券名称 操作 成交数量 成交均价 成交金额 合同编号 成交编号 \\\n", 877 | "0 10:56:43 162411 华宝油气 买入 100 0.500 50.0 1025459094 2615637099 \n", 878 | "1 10:59:12 162411 华宝油气 买入 100 0.501 50.1 1025464948 2615645434 \n", 879 | "2 11:01:06 162411 华宝油气 买入 100 0.500 50.0 1025470854 2615651632 \n", 880 | "\n", 881 | " 撤单数量 股票余额 Unnamed: 11 \n", 882 | "0 0 1100 \n", 883 | "1 0 1200 \n", 884 | "2 0 1300 " 885 | ] 886 | }, 887 | "execution_count": 53, 888 | "metadata": {}, 889 | "output_type": "execute_result" 890 | } 891 | ], 892 | "source": [ 893 | "grid = main.window(\n", 894 | " control_id=0x417,\n", 895 | " class_name='CVirtualGridCtrl'\n", 896 | ")\n", 897 | "grid.set_focus().right_click() # 模拟右键\n", 898 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 899 | "time.sleep(0.1)\n", 900 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 901 | "time.sleep(0.1)\n", 902 | "pywinauto.keyboard.SendKeys('{DOWN}')\n", 903 | "time.sleep(0.1)\n", 904 | "pywinauto.keyboard.SendKeys(\"{ENTER}\")\n", 905 | "\n", 906 | "\n", 907 | "file_path = \"tmp.png\"\n", 908 | "while True:\n", 909 | " app.top_window().window(\n", 910 | " control_id=0x965,\n", 911 | " class_name='Static'\n", 912 | " ).CaptureAsImage().save(file_path) #保存验证码\n", 913 | "\n", 914 | " captcha_num = captcha_recognize(file_path) # 识别验证码\n", 915 | "\n", 916 | " app.top_window().window(\n", 917 | " control_id=0x964,\n", 918 | " class_name='Edit'\n", 919 | " ).set_text(captcha_num) # 模拟输入验证码\n", 920 | "\n", 921 | " app.top_window().set_focus()\n", 922 | " pywinauto.keyboard.SendKeys(\"{ENTER}\") # 模拟发送enter,点击确定\n", 923 | "\n", 924 | " try:\n", 925 | " print(app.top_window().window(control_id=0x966, class_name='Static').window_text())\n", 926 | " except:\n", 927 | " break\n", 928 | " time.sleep(0.1)\n", 929 | "\n", 930 | "# print(clipboard.GetData())\n", 931 | "\n", 932 | "data = clipboard.GetData()\n", 933 | "df = pd.read_csv(io.StringIO(data),\n", 934 | " delimiter='\\t',\n", 935 | " na_filter=False)\n", 936 | "df" 937 | ] 938 | }, 939 | { 940 | "cell_type": "markdown", 941 | "metadata": {}, 942 | "source": [ 943 | "## 撤单" 944 | ] 945 | }, 946 | { 947 | "cell_type": "code", 948 | "execution_count": 54, 949 | "metadata": {}, 950 | "outputs": [ 951 | { 952 | "data": { 953 | "text/plain": [ 954 | "" 955 | ] 956 | }, 957 | "execution_count": 54, 958 | "metadata": {}, 959 | "output_type": "execute_result" 960 | } 961 | ], 962 | "source": [ 963 | "get_left_menus_handle().get_item(['撤单[F3]']).click()" 964 | ] 965 | }, 966 | { 967 | "cell_type": "code", 968 | "execution_count": 57, 969 | "metadata": {}, 970 | "outputs": [ 971 | { 972 | "name": "stdout", 973 | "output_type": "stream", 974 | "text": [ 975 | "验证码错误!!\n", 976 | "委托时间\t证券代码\t证券名称\t操作\t备注\t委托数量\t成交数量\t撤消数量\t委托价格\t订单类型\t成交均价\t合同编号\t\n", 977 | "10:33:28\t162411\t华宝油气\t卖出\t未成交\t100\t0\t0\t0.510\t限价\t0.000\t1025353126\t\n", 978 | "10:32:46\t162411\t华宝油气\t卖出\t未成交\t100\t0\t0\t0.510\t限价\t0.000\t1025366444\t\n", 979 | "11:05:45\t162411\t华宝油气\t卖出\t未成交\t100\t0\t0\t0.510\t限价\t0.000\t1025471336\t\n", 980 | "11:06:24\t162411\t华宝油气\t卖出\t未成交\t100\t0\t0\t0.510\t限价\t0.000\t1025476425\t\n", 981 | "11:05:28\t162411\t华宝油气\t买入\t未成交\t100\t0\t0\t0.492\t限价\t0.000\t1025482214\t\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\n" 982 | ] 983 | } 984 | ], 985 | "source": [ 986 | "def get_entrusts():\n", 987 | " grid = main.window(\n", 988 | " control_id=0x417,\n", 989 | " class_name='CVirtualGridCtrl'\n", 990 | " )\n", 991 | " grid.set_focus().right_click() # 模拟右键\n", 992 | " pywinauto.keyboard.SendKeys('{DOWN}')\n", 993 | " time.sleep(0.1)\n", 994 | " pywinauto.keyboard.SendKeys('{DOWN}')\n", 995 | " time.sleep(0.1)\n", 996 | " pywinauto.keyboard.SendKeys(\"{ENTER}\")\n", 997 | "\n", 998 | "\n", 999 | " file_path = \"tmp.png\"\n", 1000 | " while True:\n", 1001 | " app.top_window().window(\n", 1002 | " control_id=0x965,\n", 1003 | " class_name='Static'\n", 1004 | " ).CaptureAsImage().save(file_path) #保存验证码\n", 1005 | "\n", 1006 | " captcha_num = captcha_recognize(file_path) # 识别验证码\n", 1007 | "\n", 1008 | " app.top_window().window(\n", 1009 | " control_id=0x964,\n", 1010 | " class_name='Edit'\n", 1011 | " ).set_text(captcha_num) # 模拟输入验证码\n", 1012 | "\n", 1013 | " app.top_window().set_focus()\n", 1014 | " pywinauto.keyboard.SendKeys(\"{ENTER}\") # 模拟发送enter,点击确定\n", 1015 | "\n", 1016 | " try:\n", 1017 | " print(app.top_window().window(control_id=0x966, class_name='Static').window_text())\n", 1018 | " except:\n", 1019 | " break\n", 1020 | " time.sleep(0.1)\n", 1021 | "\n", 1022 | " print(clipboard.GetData())\n", 1023 | "\n", 1024 | " data = clipboard.GetData()\n", 1025 | " df = pd.read_csv(io.StringIO(data),\n", 1026 | " delimiter='\\t',\n", 1027 | " na_filter=False)\n", 1028 | " return df.to_dict('records')\n", 1029 | "\n", 1030 | "entrusts = get_entrusts()" 1031 | ] 1032 | }, 1033 | { 1034 | "cell_type": "code", 1035 | "execution_count": 58, 1036 | "metadata": {}, 1037 | "outputs": [ 1038 | { 1039 | "data": { 1040 | "text/plain": [ 1041 | "[{'委托时间': '10:33:28',\n", 1042 | " '证券代码': 162411,\n", 1043 | " '证券名称': '华宝油气',\n", 1044 | " '操作': '卖出',\n", 1045 | " '备注': '未成交',\n", 1046 | " '委托数量': 100,\n", 1047 | " '成交数量': 0,\n", 1048 | " '撤消数量': 0,\n", 1049 | " '委托价格': 0.51,\n", 1050 | " '订单类型': '限价',\n", 1051 | " '成交均价': 0.0,\n", 1052 | " '合同编号': 1025353126,\n", 1053 | " 'Unnamed: 12': ''},\n", 1054 | " {'委托时间': '10:32:46',\n", 1055 | " '证券代码': 162411,\n", 1056 | " '证券名称': '华宝油气',\n", 1057 | " '操作': '卖出',\n", 1058 | " '备注': '未成交',\n", 1059 | " '委托数量': 100,\n", 1060 | " '成交数量': 0,\n", 1061 | " '撤消数量': 0,\n", 1062 | " '委托价格': 0.51,\n", 1063 | " '订单类型': '限价',\n", 1064 | " '成交均价': 0.0,\n", 1065 | " '合同编号': 1025366444,\n", 1066 | " 'Unnamed: 12': ''},\n", 1067 | " {'委托时间': '11:05:45',\n", 1068 | " '证券代码': 162411,\n", 1069 | " '证券名称': '华宝油气',\n", 1070 | " '操作': '卖出',\n", 1071 | " '备注': '未成交',\n", 1072 | " '委托数量': 100,\n", 1073 | " '成交数量': 0,\n", 1074 | " '撤消数量': 0,\n", 1075 | " '委托价格': 0.51,\n", 1076 | " '订单类型': '限价',\n", 1077 | " '成交均价': 0.0,\n", 1078 | " '合同编号': 1025471336,\n", 1079 | " 'Unnamed: 12': ''},\n", 1080 | " {'委托时间': '11:06:24',\n", 1081 | " '证券代码': 162411,\n", 1082 | " '证券名称': '华宝油气',\n", 1083 | " '操作': '卖出',\n", 1084 | " '备注': '未成交',\n", 1085 | " '委托数量': 100,\n", 1086 | " '成交数量': 0,\n", 1087 | " '撤消数量': 0,\n", 1088 | " '委托价格': 0.51,\n", 1089 | " '订单类型': '限价',\n", 1090 | " '成交均价': 0.0,\n", 1091 | " '合同编号': 1025476425,\n", 1092 | " 'Unnamed: 12': ''},\n", 1093 | " {'委托时间': '11:05:28',\n", 1094 | " '证券代码': 162411,\n", 1095 | " '证券名称': '华宝油气',\n", 1096 | " '操作': '买入',\n", 1097 | " '备注': '未成交',\n", 1098 | " '委托数量': 100,\n", 1099 | " '成交数量': 0,\n", 1100 | " '撤消数量': 0,\n", 1101 | " '委托价格': 0.49200000000000005,\n", 1102 | " '订单类型': '限价',\n", 1103 | " '成交均价': 0.0,\n", 1104 | " '合同编号': 1025482214,\n", 1105 | " 'Unnamed: 12': ''}]" 1106 | ] 1107 | }, 1108 | "execution_count": 58, 1109 | "metadata": {}, 1110 | "output_type": "execute_result" 1111 | } 1112 | ], 1113 | "source": [ 1114 | "entrusts" 1115 | ] 1116 | }, 1117 | { 1118 | "cell_type": "code", 1119 | "execution_count": 59, 1120 | "metadata": {}, 1121 | "outputs": [], 1122 | "source": [ 1123 | "entrust_no = \"1025353126\"" 1124 | ] 1125 | }, 1126 | { 1127 | "cell_type": "code", 1128 | "execution_count": 71, 1129 | "metadata": {}, 1130 | "outputs": [], 1131 | "source": [ 1132 | "def cancel_by_double_click(row):\n", 1133 | " app.top_window().set_focus()\n", 1134 | " x = 50\n", 1135 | " y = 30 + 16 * row\n", 1136 | " app.top_window().window(\n", 1137 | " control_id=1047,\n", 1138 | " class_name='CVirtualGridCtrl'\n", 1139 | " ).double_click(coords=(x, y))\n", 1140 | " \n", 1141 | " app.top_window().window(control_id=0x6, class_name='Button').click() # 确定撤单" 1142 | ] 1143 | }, 1144 | { 1145 | "cell_type": "code", 1146 | "execution_count": 72, 1147 | "metadata": {}, 1148 | "outputs": [ 1149 | { 1150 | "name": "stdout", 1151 | "output_type": "stream", 1152 | "text": [ 1153 | "0 1025353126\n", 1154 | "canceling 1025353126\n" 1155 | ] 1156 | }, 1157 | { 1158 | "ename": "ElementNotFoundError", 1159 | "evalue": "{'control_id': 6, 'class_name': 'Button', 'top_level_only': False, 'parent': , 'backend': 'win32'}", 1160 | "output_type": "error", 1161 | "traceback": [ 1162 | "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", 1163 | "\u001b[1;31mTimeoutError\u001b[0m Traceback (most recent call last)", 1164 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py\u001b[0m in \u001b[0;36m__resolve_control\u001b[1;34m(self, criteria, timeout, retry_interval)\u001b[0m\n\u001b[0;32m 244\u001b[0m controls.InvalidElement),\n\u001b[1;32m--> 245\u001b[1;33m criteria)\n\u001b[0m\u001b[0;32m 246\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n", 1165 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\timings.py\u001b[0m in \u001b[0;36mwait_until_passes\u001b[1;34m(timeout, retry_interval, func, exceptions, *args)\u001b[0m\n\u001b[0;32m 448\u001b[0m \u001b[0merr\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0moriginal_exception\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 449\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0merr\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 450\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n", 1166 | "\u001b[1;31mTimeoutError\u001b[0m: ", 1167 | "\nDuring handling of the above exception, another exception occurred:\n", 1168 | "\u001b[1;31mElementNotFoundError\u001b[0m Traceback (most recent call last)", 1169 | "\u001b[1;32m\u001b[0m in \u001b[0;36m\u001b[1;34m()\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mentrust\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m\"合同编号\"\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m==\u001b[0m \u001b[0mentrust_no\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m\"canceling\"\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mentrust_no\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 5\u001b[1;33m \u001b[0mcancel_by_double_click\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mi\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", 1170 | "\u001b[1;32m\u001b[0m in \u001b[0;36mcancel_by_double_click\u001b[1;34m(row)\u001b[0m\n\u001b[0;32m 8\u001b[0m ).double_click(coords=(x, y))\n\u001b[0;32m 9\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 10\u001b[1;33m \u001b[0mapp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mtop_window\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mwindow\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mcontrol_id\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;36m0x6\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mclass_name\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;34m'Button'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mclick\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;31m# 确定撤单\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m", 1171 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py\u001b[0m in \u001b[0;36m__getattribute__\u001b[1;34m(self, attr_name)\u001b[0m\n\u001b[0;32m 349\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcriteria\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m>=\u001b[0m \u001b[1;36m2\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 350\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 351\u001b[1;33m \u001b[0mctrls\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m__resolve_control\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcriteria\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 352\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 353\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", 1172 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py\u001b[0m in \u001b[0;36m__resolve_control\u001b[1;34m(self, criteria, timeout, retry_interval)\u001b[0m\n\u001b[0;32m 246\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 247\u001b[0m \u001b[1;32mexcept\u001b[0m \u001b[0mTimeoutError\u001b[0m \u001b[1;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 248\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0me\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0moriginal_exception\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 249\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 250\u001b[0m \u001b[1;32mreturn\u001b[0m \u001b[0mctrl\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", 1173 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\timings.py\u001b[0m in \u001b[0;36mwait_until_passes\u001b[1;34m(timeout, retry_interval, func, exceptions, *args)\u001b[0m\n\u001b[0;32m 425\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 426\u001b[0m \u001b[1;31m# Call the function with any arguments\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 427\u001b[1;33m \u001b[0mfunc_val\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mfunc\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m*\u001b[0m\u001b[0margs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 428\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 429\u001b[0m \u001b[1;31m# if no exception is raised then we are finished\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", 1174 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\application.py\u001b[0m in \u001b[0;36m__get_ctrl\u001b[1;34m(self, criteria_)\u001b[0m\n\u001b[0;32m 207\u001b[0m \u001b[1;32mif\u001b[0m \u001b[1;34m'backend'\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mctrl_criteria\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 208\u001b[0m \u001b[0mctrl_criteria\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'backend'\u001b[0m\u001b[1;33m]\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mbackend\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 209\u001b[1;33m \u001b[0mctrl\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mbackend\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mgeneric_wrapper_class\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfindwindows\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m**\u001b[0m\u001b[0mctrl_criteria\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 210\u001b[0m \u001b[0mprevious_parent\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mctrl\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0melement_info\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 211\u001b[0m \u001b[0mctrls\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mctrl\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", 1175 | "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\pywinauto\\findwindows.py\u001b[0m in \u001b[0;36mfind_element\u001b[1;34m(**kwargs)\u001b[0m\n\u001b[0;32m 85\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 86\u001b[0m \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0melements\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 87\u001b[1;33m \u001b[1;32mraise\u001b[0m \u001b[0mElementNotFoundError\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 88\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 89\u001b[0m \u001b[1;32mif\u001b[0m \u001b[0mlen\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0melements\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;33m>\u001b[0m \u001b[1;36m1\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", 1176 | "\u001b[1;31mElementNotFoundError\u001b[0m: {'control_id': 6, 'class_name': 'Button', 'top_level_only': False, 'parent': , 'backend': 'win32'}" 1177 | ] 1178 | } 1179 | ], 1180 | "source": [ 1181 | "for i, entrust in enumerate(entrusts):\n", 1182 | " print(i, entrust[\"合同编号\"])\n", 1183 | " if str(entrust[\"合同编号\"]) == entrust_no:\n", 1184 | " print(\"canceling\", entrust_no)\n", 1185 | " cancel_by_double_click(i)" 1186 | ] 1187 | } 1188 | ], 1189 | "metadata": { 1190 | "kernelspec": { 1191 | "display_name": "Python 3", 1192 | "language": "python", 1193 | "name": "python3" 1194 | }, 1195 | "language_info": { 1196 | "codemirror_mode": { 1197 | "name": "ipython", 1198 | "version": 3 1199 | }, 1200 | "file_extension": ".py", 1201 | "mimetype": "text/x-python", 1202 | "name": "python", 1203 | "nbconvert_exporter": "python", 1204 | "pygments_lexer": "ipython3", 1205 | "version": "3.6.5" 1206 | } 1207 | }, 1208 | "nbformat": 4, 1209 | "nbformat_minor": 2 1210 | } 1211 | --------------------------------------------------------------------------------