{ "info": { "author": "", "author_email": "frank.c.fort@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "# NYC Parking Ticket Checker\n\nI was interested in writing something to be able to see what tickets I\nhave outstanding programmatically and saw that\n[drassi/nyc-parking-ticket-monitor](https://github.com/drassi/nyc-parking-ticket-monitor)\nexisted. Unfortunately the end-point used there\n(`http://nycserv.nyc.gov/NYCServWeb/NYCSERVMain`) is now behind a\nreCAPTCHA challenge making it infeasible to use.\n\nInstead I used the payments end-point\n(`http://www1.nyc.gov/assets/finance/jump/pay_parking_camera_violations.html`)\nto perform a similar query.\n\n## Libraries\n\nRequires `mechanize` and `BeautifulSoup4` to be installed.\n\n## Installing\n\n`python setup.py install`\n\nRun `ticket_checker`\n\n### Dev dependencies\n\n`pip install twine`\n\n`pip install wheel`\n\n## Usage\n\n```\nusage: ticket_checker.py [-h] [--violation VIOLATION] [--plate PLATE]\n [--state STATE] [--plate_type PLATE_TYPE] [--debug]\n\noptional arguments:\n -h, --help show this help message and exit\n --violation VIOLATION\n Violation #\n --plate PLATE License Plate #\n --state STATE 2-letter State of the license plate, defaults to \"NY\"\n --plate_type PLATE_TYPE\n 3-character type of the license plate, defaults to\n \"PAS\" (passenger)\n --debug Turns on debugging of HTTP calls.\n```\n\n## Examples\n\nCheck for a specfic violation number:\n\n`python ticket_checker.py --violation VIOLATION_NUMBER`\n\nCheck for your NY plate:\n\n`python ticket_checker.py --plate COOLPL8`\n\nCheck for your Montana plate:\n\n`python ticket_checker.py --plate COOLPL8 --state MT`\n\nCheck for your NY commerical plate:\n\n`python ticket_checker.py --plate T0000000 --type COM`\n\n## Example output\n\nIf a ticket is found the output will look like:\n\n```\n$ python ticket_checker.py --plate COOLPL8\nFound 1 ticket(s) for COOLPL8\nGot tickets:\n 1. NO PARKING-STREET CLEANING: violation # 1234567890 for plate COOLPL8 NY PAS on 01/23/2017 for $45.00\n```\n\nIf there is an error, the script will print the error message returned from the server:\n\n```\n$ python ticket_checker.py --plate BADPLATE\n\"The host system returned the following failure:The plate number was not found. Please verify the plate number, state and type values and search again. Please note if your ticket was recently issued or if you have no outstanding violations, your plate information will not be found. If you wish to pay a ticket you just received, search by the ticket number to ensure it has not been entered into the system.\u00a0(Error code:\u00a0PWS-00001) \"\n```\n\n## Future Plans\n\n - Add support for multiple violations and plates.\n\n## Packaging\n\n`python setup.py sdist`\n\n`python setup.py bdist_wheel`\n\n### Test PyPI\n\ntwine upload --repository-url https://test.pypi.org/legacy/ dist/*\n\n### Prod PyPI\n\ntwine upload dist/*\n\n## License\n\n[Apache 2.0](https://opensource.org/licenses/Apache-2.0)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fcfort/nyc-parking-ticket-checker", "keywords": "ticket plates violation-number nyc", "license": "", "maintainer": "", "maintainer_email": "", "name": "nyc-parking-ticket-checker", "package_url": "https://pypi.org/project/nyc-parking-ticket-checker/", "platform": "", "project_url": "https://pypi.org/project/nyc-parking-ticket-checker/", "project_urls": { "Homepage": "https://github.com/fcfort/nyc-parking-ticket-checker" }, "release_url": "https://pypi.org/project/nyc-parking-ticket-checker/0.0.6/", "requires_dist": null, "requires_python": "", "summary": "A module to query for NYC parking tickets", "version": "0.0.6" }, "last_serial": 3805089, "releases": { "0.0.6": [ { "comment_text": "", "digests": { "md5": "2e8c0f88f90fd5f619adb93fdc72a4bb", "sha256": "11b360a62b31b1050021fcf813bf76f719ebc7331ede5650a9f8203455ae30d1" }, "downloads": -1, "filename": "nyc-parking-ticket-checker-0.0.6.tar.gz", "has_sig": false, "md5_digest": "2e8c0f88f90fd5f619adb93fdc72a4bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5064, "upload_time": "2018-04-25T01:20:08", "url": "https://files.pythonhosted.org/packages/61/a1/bf30722150ddd1398ea624dadca57b2874f9504932a9e3b0520c09b6148c/nyc-parking-ticket-checker-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2e8c0f88f90fd5f619adb93fdc72a4bb", "sha256": "11b360a62b31b1050021fcf813bf76f719ebc7331ede5650a9f8203455ae30d1" }, "downloads": -1, "filename": "nyc-parking-ticket-checker-0.0.6.tar.gz", "has_sig": false, "md5_digest": "2e8c0f88f90fd5f619adb93fdc72a4bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5064, "upload_time": "2018-04-25T01:20:08", "url": "https://files.pythonhosted.org/packages/61/a1/bf30722150ddd1398ea624dadca57b2874f9504932a9e3b0520c09b6148c/nyc-parking-ticket-checker-0.0.6.tar.gz" } ] }