{ "info": { "author": "ecmadao", "author_email": "wlec@outlook.com", "bugtrack_url": null, "classifiers": [], "description": "## spider-12306\n\n[![Build Status](https://travis-ci.org/ecmadao/Spider-12306.svg?branch=master)](https://travis-ci.org/ecmadao/Spider-12306)\n\n\u6700\u521d\u7684\u7075\u611f\u6765\u81ea\u4e8e[PROTREAM](https://protream.github.io/)\u7684\u535a\u5ba2[\u7528Python\u5199\u4e00\u4e2a\u547d\u4ee4\u884c\u706b\u8f66\u7968\u67e5\u770b\u5668](https://protream.github.io/post/build-a-command-line-train-tickets-query-tool-with-python/)\uff0c\u611f\u8c22\u4ed6\u63d0\u4f9b\u7684\u8f66\u7ad9\u540d\u79f0\u8f6c\u6362\u94fe\u63a5\uff0c\u6709\u4e86\u90a3\u4e2a\u4ee5\u540e\u6211\u5c31\u5c41\u98a0\u5c41\u98a0\u8dd1\u53bb\u5199\u7740\u73a9\u4e86\u3002\n\n### \u5f00\u53d1\u73af\u5883\n\npython 3.5\n\n### \u7b2c\u4e09\u65b9\u4f9d\u8d56\n\n[prettytable](https://code.google.com/archive/p/prettytable/wikis/Tutorial.wiki)\n\n\u6253\u4e2a\u5e7f\u544a\uff0c[python\u6559\u7a0b\u53ca\u7b14\u8bb0](https://github.com/ecmadao/Coding-Guide/tree/master/Notes/Python)\u6233\u8fd9\u8fb9\uff0cprettytable\u4f7f\u7528\u65b9\u6cd5\u53ef\u89c1[Python\u8bed\u8a00\u53ca\u5176\u5e94\u7528-3(\u6570\u636e\u5904\u7406)](https://github.com/ecmadao/Coding-Guide/blob/master/Notes/Python/Python%E8%AF%AD%E8%A8%80%E5%8F%8A%E5%85%B6%E5%BA%94%E7%94%A8-3%EF%BC%88%E6%95%B0%E6%8D%AE%E5%A4%84%E7%90%86%EF%BC%89.md)\n\n### USAGE\n\n\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\uff0c\n\n```bash\n$ train\n$ train --train-type=[g | d | t | k | z | None] # \u67e5\u8be2\u4e0d\u540c\u7c7b\u578b\u7684\u706b\u8f66\n```\n\nexample:\n\n```bash\n$ train\n$ train --train-type=g\n\n# output\n+------+------+----------+-------+--------+--------+--------+--------+------+------+------+------+------+\n| \u8f66\u6b21 | \u7ad9\u70b9 | \u8d77\u6b62\u65f6\u95f4 | \u5386\u65f6 | \u5546\u52a1\u5ea7 | \u7279\u7b49\u5ea7 | \u4e00\u7b49\u5ea7 | \u4e8c\u7b49\u5ea7 | \u8f6f\u5367 | \u786c\u5367 | \u8f6f\u5ea7 | \u786c\u5ea7 | \u65e0\u5ea7 |\n+------+------+----------+-------+--------+--------+--------+--------+------+------+------+------+------+\n| K904 | \u53a6\u95e8 | 06:59 | 21:55 | -- | -- | -- | -- | 8 | \u6709 | -- | \u6709 | \u6709 |\n| | \u592a\u539f | 04:54 | | | | | | | | | | |\n+------+------+----------+-------+--------+--------+--------+--------+------+------+------+------+------+\n```\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ecmadao/Spider-12306", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "train_12306", "package_url": "https://pypi.org/project/train_12306/", "platform": "any", "project_url": "https://pypi.org/project/train_12306/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ecmadao/Spider-12306" }, "release_url": "https://pypi.org/project/train_12306/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "simple python application to get 12306 tickets", "version": "0.1.6" }, "last_serial": 2211788, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a0b04993b0ef4bcddf14447c58a9826c", "sha256": "40f31d43db572262153f2e42abb9da7638c759478d687e9d955c2051eafac972" }, "downloads": -1, "filename": "train_12306-0.1.tar.gz", "has_sig": false, "md5_digest": "a0b04993b0ef4bcddf14447c58a9826c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6729, "upload_time": "2016-07-09T05:30:08", "url": "https://files.pythonhosted.org/packages/2f/be/0e101e8c0c86304262e0d757f1993884b50ea17a93a2ad505d8d40cf2983/train_12306-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f2112f9fd7c23ec3b839c5efc9bd488c", "sha256": "ba6661edbf29c759ac569d09ec19c15e1540d3d7d3ee84bd00cbda67d32bc469" }, "downloads": -1, "filename": "train_12306-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f2112f9fd7c23ec3b839c5efc9bd488c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6725, "upload_time": "2016-07-09T05:41:30", "url": "https://files.pythonhosted.org/packages/8a/51/ae246ae6ee82d4c854a7579a60cdb180e28dbcbb06170b78a53cb0e9f7d5/train_12306-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e8b233469a019e84c6e0508a5d06af04", "sha256": "c7f71a47cb91c6adf8abc29a1a84e70179875268503d285e638eddf41a05bbc9" }, "downloads": -1, "filename": "train_12306-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e8b233469a019e84c6e0508a5d06af04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6764, "upload_time": "2016-07-09T06:13:28", "url": "https://files.pythonhosted.org/packages/5e/fb/a3d977b3ce1c3cd66f8d1a314d9c53143a52091c23a901e3b5585dc27395/train_12306-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "2e82d0ce01ec3a0e975d26e6d0e0de6f", "sha256": "4e0d3c2b87d9f245edf01b5fc6c09b41aeea39bb4b8ae816e9415dc320d1a2bd" }, "downloads": -1, "filename": "train_12306-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2e82d0ce01ec3a0e975d26e6d0e0de6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53798, "upload_time": "2016-07-09T06:28:22", "url": "https://files.pythonhosted.org/packages/11/0c/2c7d601d0867570e1a636c4dc3d80ee44a4cce5faa916a89b9fc216d3c64/train_12306-0.1.3.tar.gz" } ], "0.1.4": [], "0.1.6": [ { "comment_text": "", "digests": { "md5": "7efc21fdaf4021ae2e2145b8b78afbba", "sha256": "a8d9405a9da44dc0d81bd54a3106622111d422f72cac20a6acc821ecbd7212d8" }, "downloads": -1, "filename": "train_12306-0.1.6.tar.gz", "has_sig": false, "md5_digest": "7efc21fdaf4021ae2e2145b8b78afbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53848, "upload_time": "2016-07-09T13:10:39", "url": "https://files.pythonhosted.org/packages/b8/00/d8caa3d10c8aaa1e11ca2024affdf51b9596103b3f28d2c175de08a72331/train_12306-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7efc21fdaf4021ae2e2145b8b78afbba", "sha256": "a8d9405a9da44dc0d81bd54a3106622111d422f72cac20a6acc821ecbd7212d8" }, "downloads": -1, "filename": "train_12306-0.1.6.tar.gz", "has_sig": false, "md5_digest": "7efc21fdaf4021ae2e2145b8b78afbba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 53848, "upload_time": "2016-07-09T13:10:39", "url": "https://files.pythonhosted.org/packages/b8/00/d8caa3d10c8aaa1e11ca2024affdf51b9596103b3f28d2c175de08a72331/train_12306-0.1.6.tar.gz" } ] }