Gist 5383571
✓ Published0🌍 Public
Aamundo
Last edited Nov 5, 2011
Created on Apr 14, 2013
This example presents a web-based API for accessing Malaysian Member of Parliament profile data, exposing endpoints to list all MPs or retrieve a single MP by ID. Built with Bottle’s routing and SQLAlchemy’s ORM, it queries an SQLite database populated from ScraperWiki. The `/mp/api/list/` endpoint returns all records as JSON dictionaries, while `/mp/api/view/` filters by an `id` parameter using a SQLAlchemy select. Data originates from the scraperwiki source `malaysian_mp_profile`. The server runs locally via Bottle’s `run` function with debugging enabled.
AI-generated description