Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meatcar/lcbo-car-fuel
Find the most cost-effective product to fuel an ethanol car with from LCBO
https://github.com/meatcar/lcbo-car-fuel
lcbo-api nix sqlite
Last synced: 12 days ago
JSON representation
Find the most cost-effective product to fuel an ethanol car with from LCBO
- Host: GitHub
- URL: https://github.com/meatcar/lcbo-car-fuel
- Owner: meatcar
- Created: 2020-09-25T20:57:41.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-26T20:18:02.000Z (over 1 year ago)
- Last Synced: 2024-10-12T00:21:35.784Z (about 1 month ago)
- Topics: lcbo-api, nix, sqlite
- Language: Go
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LCBO Car Fuel Index
Pull the [LCBO REST API](https://api.lcbo.com) into a ~200MB sqlite database. Originally intended to be used to figure out the least expensive volume of ethanol at a specific location, but can be used to explore other interesting correlations.
## Requirements
- Linux, MacOS, or WSL under Windows.
- [nix](https://nixos.org/download.html)## Usage
Open a shell with the dependencies.
```sh
$ nix-shell
```Scrape api.lcbo.com into a sqlite database, as defined in `.env`.
```sh
$ bin/fetch all # Takes about 1hr
$ bin/tune-db
```Optionally, explore the data with [metabase](https://metabase.com)
```sh
$ metabase
```## Questions
- [ ] Most represented country, alcohol, etc by total volume, price adjusted, etc.
- [ ] Wine vs Beer popularity
- [ ] Geographic distributions