Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jokull/orflaedi
https://github.com/jokull/orflaedi
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jokull/orflaedi
- Owner: jokull
- Created: 2020-03-02T23:14:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T07:53:43.000Z (6 months ago)
- Last Synced: 2024-12-17T03:58:31.962Z (15 days ago)
- Language: Python
- Homepage: https://www.orflaedi.is
- Size: 6.77 MB
- Stars: 13
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Development
You will need pnpm, Poetry installed and Postgres running locally
```bash
> pnpm
> pnpm run watch
```In another tab
```bash
> poetry install
> poetry run uvicorn orflaedi.main:app --reload
```Drop into a Fish shell in the Docker
```bash
docker compose up --build -d
docker exec -it db1eead29953 fish
```Use something like this for black formating in a `.vscode/settings.json` file.
```json
{
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"python.formatting.blackArgs": ["--line-length=100"]
}
```# Scrapers
This project scrapes Icelandic e-bike retailer websites
- ellingsen.s4s.is
- orninn.is
- kriacycles.is
- tri.is
- rafmagnshjol.is
- reidhjolaverzlunin.is
- markid.is
- gap.is
- peloton.is
- ofsi.is
- hjolasprettur.is
- hvellur.com
- bike.is (Fjallakofinn)
- everest.is
- nova.is
- skidathjonustan.com (Akureyri)
- elko.is
- sensabikes.is
- gastec.is**TODO**
- https://arcticebike.com/collections/e-bikes
- https://www.pukinn.com/ghost-e-bikes
- http://topphjol.is## Data
Vehicles can be browsed on these dimensions
- Price
- Below 60.000 kr
- Between 60.000 and 130.000 kr
- Between 130.000 and 250.000 kr
- Between 250.000 and 600.000 kr
- Above 600.000 kr
- Vehicle classification
- Reiðhjól C (mostly scooters)
- Reiðhjól B (e-bikes)
- Létt bifhjól (light two wheeler above 250w)
- Hraðhjól (also called Létt bifhjól 2, light two wheeler above 25km/h top
speed)
- Retailer
- see websites aboveIn the future it would be good to connect vehicles to electribikereview.com to
get frame types, purpose (gravel, city, cargo etc.). I scraped the bike brand
name too. Could add a filter for that to the UI.# Deployment
The project is hosted on Render on `www.orflaedi.is`. There is a Scrapy spider
for each of the retailer websites that is run a few times a day.```bash
> poetry export --without-hashes -f requirements.txt > requirements.txt
> NODE_ENV=production yarn run build
```- Update the requirements.txt (we’re using Poetry which uses a proper lockfile,
but this is required for Render)
- Run a production build (it will slim down tailwindcss)Next add a commit and push. It will autodeploy.
Images are served via imgix proxy (all bike images are references to the
external URL, never persisted locally).