Git Product home page Git Product logo

gas-prices-gr's Introduction

Scrape Gas Prices Greece API

This is a Python script that scrapes gas prices from the vrisko.gr website for a given location in Greece, and outputs the results in JSON format via REST API.

Requirements

  • asdf

Usage

Running the script will start a server on port 5000. The server has the following endpoints:

  • /scrape/xegr/<location>

Example

$ curl http://localhost:5000/scrape/xegr/athina
## Note: you can get the endpoints for the other
locations by visiting the website and
inspecting the network requests

Each gas station in the location is represented by a dictionary with the following keys:

  • name: The name of the gas station.
  • address: The address of the gas station.
  • unleaded_95: The price of unleaded 95 gasoline at the gas station.
  • unleaded_100: The price of unleaded 100 gasoline at the gas station.
  • auto_gas: The price of auto gas at the gas station.
  • auto_diesel: The price of auto diesel at the gas station.
  • heating_oil: The price of heating oil at the gas station.
  • heating_oil_lt_1000lt: The price of heating oil for quantities > 1000 lt

gas-prices-gr's People

Contributors

aorfanos avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

gas-prices-gr's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency bs4 to ^0.0.2
  • chore(deps): update dependency ruby to v3.3.4
  • fix(deps): update dependency requests to v2.32.3
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/setup-python action to v5
  • chore(deps): update azure/setup-helm action to v4
  • chore(deps): update peaceiris/actions-gh-pages action to v4
  • fix(deps): update dependency flask to v3
  • fix(deps): update dependency gunicorn to v23
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

asdf
.tool-versions
  • poetry 1.5.1
  • python 3.11.4
  • pre-commit 3.3.3
  • ruby 3.2.2
dockerfile
Dockerfile
  • python 3.11.4-slim-bullseye
  • python 3.11.4-slim-bullseye
github-actions
.github/workflows/build.yaml
  • actions/checkout v3
  • docker/login-action v2
.github/workflows/helm.yaml
  • actions/checkout v3
  • azure/setup-helm v3
  • peaceiris/actions-gh-pages v3
.github/workflows/test.yml
  • actions/checkout v3
  • asdf-vm/actions v2
  • actions/setup-python v4
  • actions/cache v3
  • asdf-vm/actions v2.2.0
  • actions/checkout v3
pep621
pyproject.toml
poetry
pyproject.toml
  • python ^3.11
  • bs4 ^0.0.1
  • requests ^2.31.0
  • flask ^2.3.2
  • gunicorn ^21.0.0
  • pytest-md-report ^0.4.0
  • unidecode ^1.3.6

  • Check this box to trigger a request for Renovate to run again on this repository

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.