Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serge45/pytwgasprices
APIs to fetch the latest Taiwan gas prices
https://github.com/serge45/pytwgasprices
crawler gas price python taiwan
Last synced: about 21 hours ago
JSON representation
APIs to fetch the latest Taiwan gas prices
- Host: GitHub
- URL: https://github.com/serge45/pytwgasprices
- Owner: Serge45
- License: mit
- Created: 2019-02-27T05:30:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-26T02:04:44.000Z (over 1 year ago)
- Last Synced: 2024-04-04T00:50:33.203Z (8 months ago)
- Topics: crawler, gas, price, python, taiwan
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytwgasprices
## Brief
A simple package to fetch the latest Taiwan gas prices## Install
`pip install pytwgasprices`## Usage
Example
```
from pytwgasprices import cpcgas, fpccgasif __name__ == '__main__':
print(cpcgas.get_cpc_gas_info())
print(fpccgas.get_fpcc_gas_info())
```will ouput
```
[('92無鉛', '26.3'), ('95無鉛', '27.8'), ('98無鉛', '29.8'), ('酒精汽油', '27.8'), ('超級柴油', '25.5'), ('液化石油氣', '17.4')]
[('92無鉛汽油', '26.3'), ('95+無鉛汽油', '27.7'), ('98無鉛汽油', '29.8'), ('超級柴油', '25.3')]
```