Coder Social home page Coder Social logo

sahil9001 / fuelprice-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phalgun/fuelprice-api

0.0 1.0 0.0 164 KB

An API for the latest fuel prices in India for all the major towns and cities.

License: Apache License 2.0

Python 100.00%

fuelprice-api's Introduction

fuelprice-api

An API for the latest fuel prices in India for all the major towns and cities. It is a Flask based lean app.

To run it on your own server, you will need Python with the Flask microframework and lxml. Use can use either easy_install or pip to install the libraries.

Start the server with :

$ python runserver.py

REST webservice calls

  • /fuelprice/v1.0/diesel - returns a JSON with diesel prices of all the major towns & cities in India.
  • /fuelprice/v1.0/diesel/cityname - returns a JSON with the diesel price in cityname.
  • /fuelprice/v1.0/petrol/ - returns a JSON with petrol prices of all the major towns & cities in India.
  • /fuelprice/v1.0/petrol/cityname - returns a JSON with the petrol price in cityname.
  • /fuelprice/v1.0/city - returns a JSON with a list of all the supported cities & towns.

Do holler if you need help in understanding the code or using it.

-- I <3 scraping.

fuelprice-api's People

Contributors

phalgun avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.