{ "info": { "author": "Ivan Tang", "author_email": "hiimivantang@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# lta-datamall-crawler\n\n[![Build Status](https://travis-ci.org/hiimivantang/ltadatamallcrawler.svg?branch=master)](https://travis-ci.org/hiimivantang/ltadatamallcrawler)\n\nLTA is responsible for planning, operating, and maintaining Singapore's land transport and systems.\n\nThis repository contains a python module to get data from LTA's [datamall][1] (free). Maybe I should not name this repository as LTA-datamall-crawler but you can always create a simple cronjob for crawling purposes.\n\n\n\n### Installation\n\n```python\n\npip install ltadatamallcrawler\n\n```\n\nOr, you can always clone this project and run the script directly.\n\n\n\n### Requirements\n\nYou will need LTA datamall API key and GUUID.\nTo get the API key, click \"Request for API Access\" on the [LTA datamall page][3]. API key will be granted immediately. Using the API key, you can generate a GUUID on [this page][4].\n\n\n### Usage\n\n```bash\n# to view the available APIs:\n\nlta-datamall-crawler -h\n\n\n\n\n# Expected output:\n\nUsage: lta-datamall-crawler [options]\n\n#Options:\n# -h, --help show this help message and exit\n#\n# Available APIs:\n# Please select one!\n#\n# --traffic-incidents\n# --bus-arrival \n# --bus-routes \n# --estimated-travel-times\n# --road-openings \n# --erp-rates \n# --vms-emas \n# --taxi-availability\n# --faulty-traffic-lights\n# --carpark-availability\n# --bus-stops \n# --traffic-images \n# --traffic-speed-bands\n# --bus-services \n# --road-works \n \n\n\n\n# to get 'real-time' traffic incidents data \n \nlta-datamall-crawler --traffic-incidents\n\n \n```\n\n\n\n\n### Motivation\n\nSometimes it can be quite labourous to create boilerplate codes for doing HTTP get requests to different APIs even though the [requests package][2] can make life slightly easier. I've created this project to make life easier for people who are interested in getting traffic data from Singapore LTA datamall. \n\n\n### Available API\n\n| description | freq | url |\n|------------------------|----------|---------------------------------------------------------------------| \n| Bus Arrival | 1m | http://datamall2.mytransport.sg/ltaodataservice/BusArrival | \n| Bus Services | ad-hoc | http://datamall2.mytransport.sg/ltaodataservice/BusServices | \n| Bus Routes | ad-hoc | http://datamall2.mytransport.sg/ltaodataservice/BusRoutes | \n| Bus Stops | ad-hoc | http://datamall2.mytransport.sg/ltaodataservice/BusRoutes |\n| Taxi Availability | 2m | http://datamall2.mytransport.sg/ltaodataservice/Taxi-Availability |\n| Carpark Availability | 1m | http://datamall2.mytransport.sg/ltaodataservice/CarParkAvailability |\n| ERP Rates | ad-hoc | http://datamall2.mytransport.sg/ltaodataservice/ERPRates |\n| Estimated Travel Times | 5m | http://datamall2.mytransport.sg/ltaodataservice/EstTravelTimes |\n| Faulty Traffic Lights | 2m | http://datamall2.mytransport.sg/ltaodataservice/FaultyTrafficLights |\n| Road Openings | 1d | http://datamall2.mytransport.sg/ltaodataservice/RoadOpenings |\n| Road Works | 1d | http://datamall2.mytransport.sg/ltaodataservice/RoadWorks |\n| Traffic Images | 5m | http://datamall2.mytransport.sg/ltaodataservice/Traffic-Images |\n| Traffic Incidents | 2m | http://datamall2.mytransport.sg/ltaodataservice/TrafficIncidents |\n| Traffic Speed Bands | 5m | http://datamall2.mytransport.sg/ltaodataservice/TrafficSpeedBands |\n| VMS / EMAS | 2m | http://datamall2.mytransport.sg/ltaodataservice/VMS |\n\n\n\n\n\n### Project Roadmap\n\n* use as a library in python script\n* allow HTTP requests with parameters for filtering results\n* create appropriate unittests\n\n\n\n[1]:https://www.mytransport.sg/content/mytransport/home/dataMall.html\n[2]:https://pypi.python.org/pypi/requests/2.11.1\n[3]:https://www.mytransport.sg/content/mytransport/home/dataMall.html\n[4]:http://datamall.mytransport.sg/tool.aspx\n\n\n\n\nHistory\n-------\n\nPre-release\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hiimivantang/ltadatamallcrawler", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "ltadatamallcrawler", "package_url": "https://pypi.org/project/ltadatamallcrawler/", "platform": "", "project_url": "https://pypi.org/project/ltadatamallcrawler/", "project_urls": { "Homepage": "https://github.com/hiimivantang/ltadatamallcrawler" }, "release_url": "https://pypi.org/project/ltadatamallcrawler/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "A package that gets traffic data from LTA datamall APIs.", "version": "1.0.0" }, "last_serial": 3712722, "releases": { "0.2.0": [], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7b3a418b3188610502da6f95302c2268", "sha256": "0d0cfcf38c8f3871e7890bc3a56388bbd8749277844c58b4c36acbfa75b5190f" }, "downloads": -1, "filename": "ltadatamallcrawler-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b3a418b3188610502da6f95302c2268", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9013, "upload_time": "2016-08-30T03:20:48", "url": "https://files.pythonhosted.org/packages/02/5e/54eaf10d6fffae3646d1fd9c8d1d12c85a790d019bd60d0c4c10075b319f/ltadatamallcrawler-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "441887050c64ec95c28fac044090c3ec", "sha256": "a57bac93b66a9d4db5cb5992e76f8a53890f960f15cfdd7a40adbde358dac317" }, "downloads": -1, "filename": "ltadatamallcrawler-0.2.1.tar.gz", "has_sig": false, "md5_digest": "441887050c64ec95c28fac044090c3ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 40304, "upload_time": "2016-08-30T03:20:52", "url": "https://files.pythonhosted.org/packages/00/69/614a98e59b79b0f3e0c1748834fade328411e65ac48a8eacb805c52823de/ltadatamallcrawler-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "3e14ef4cf472c80d824e4d43319da9dc", "sha256": "4b485859f17e058fa41f18991555c563245d499a6d6134963de3a9f820327158" }, "downloads": -1, "filename": "ltadatamallcrawler-0.2.2.tar.gz", "has_sig": false, "md5_digest": "3e14ef4cf472c80d824e4d43319da9dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41516, "upload_time": "2018-03-28T06:32:23", "url": "https://files.pythonhosted.org/packages/f2/c5/d0221ea2bc9d8545c3f3cb374b45dca9b0c4dfa3e2e106936e1d992eedca/ltadatamallcrawler-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "25325ae9dee1783826dccdb27d372070", "sha256": "46ac4c1db129f8ff4d3fb2883c92ffe63831089699b8cdbfdbdbfab533b3f91f" }, "downloads": -1, "filename": "ltadatamallcrawler-0.2.3.tar.gz", "has_sig": false, "md5_digest": "25325ae9dee1783826dccdb27d372070", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41531, "upload_time": "2018-03-28T06:35:42", "url": "https://files.pythonhosted.org/packages/d8/32/ea8feebda0f20fb3ca603fbd917c04cdb8ac85344567d7321163175f8cfd/ltadatamallcrawler-0.2.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "dd62f058d111de382c796c04a257400e", "sha256": "531aa4d48f209c3425c271cb41ce034e4964ff89bb4ce378f8a9aa31395caa7c" }, "downloads": -1, "filename": "ltadatamallcrawler-1.0.0.tar.gz", "has_sig": false, "md5_digest": "dd62f058d111de382c796c04a257400e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41533, "upload_time": "2018-03-28T06:42:28", "url": "https://files.pythonhosted.org/packages/1e/de/e745aac4e446e97791a578165a437c46d49866f76ced36f4146cfe1b320b/ltadatamallcrawler-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd62f058d111de382c796c04a257400e", "sha256": "531aa4d48f209c3425c271cb41ce034e4964ff89bb4ce378f8a9aa31395caa7c" }, "downloads": -1, "filename": "ltadatamallcrawler-1.0.0.tar.gz", "has_sig": false, "md5_digest": "dd62f058d111de382c796c04a257400e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41533, "upload_time": "2018-03-28T06:42:28", "url": "https://files.pythonhosted.org/packages/1e/de/e745aac4e446e97791a578165a437c46d49866f76ced36f4146cfe1b320b/ltadatamallcrawler-1.0.0.tar.gz" } ] }