Skip to main content

A Python package that allows you to view fuel prices in Turkey based on cities.

Project description

Opet

Güncel yakıt fiyatlarını https://www.opet.com.tr/ üzerinden almanıza sağlar.

Kullanım

Aşağıdaki komut ile paketi kurabilirsiniz.

pip install opet

Projeyi isterseniz aşağıdaki şekilde bir kütüphane olarak kullanabilirsiniz, veya opet-cli üzerinden terminalden kullanabilirsiniz.

client = OpetApiClient()

print(client.get_provinces())
print(client.get_price("55"))

get_last_update

En son güncellemenin ne zaman olduğunu görebilirsiniz.

get_provinces

Sistemde yakıt fiyatlarını çekmek için kullanabileceğiniz il ve kodlarını getirir.

price

Parametre olarak vereceğiniz il kodu ile o ildeki yakıt fiyatlarına ulaşabilirsiniz.

opet-cli

Terminal üzerinden plaka kodu parametresi geçerek yakıt fiyatlarını json formatında görebilirsiniz.

opet-cli --il 34

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opet-0.0.9.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

opet-0.0.9-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page