Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/run_carapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
- name: 🚀 Run Hybrid Profile
run: poetry run python -m src.main --email --settings settings_hybrid.json

run_program_suv:
name: 🚀 Run SUV Profile
run_program_new:
name: 🚀 Run New Profile
runs-on: ubuntu-latest
env:
EMAIL_SENDER: ${{ secrets.EMAIL_SENDER }}
Expand All @@ -76,7 +76,7 @@ jobs:
poetry install

- name: 🚀 Run SUV Profile
run: poetry run python -m src.main --email --settings settings_suv.json
run: poetry run python -m src.main --email --settings settings_new.json

run_program_no_suv:
name: 🚀 Run No SUV Profile
Expand All @@ -101,3 +101,27 @@ jobs:

- name: 🚀 Run No SUV Profile
run: poetry run python -m src.main --email --settings settings_no_suv.json

run_program_all_fuel:
name: 🚀 Run All Fuel Profile
runs-on: ubuntu-latest
env:
EMAIL_SENDER: ${{ secrets.EMAIL_SENDER }}
API_KEY: ${{ secrets.API_KEY }}
EMAIL_RECIPIENT: ${{ secrets.EMAIL_RECIPIENT }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v4

- name: 🛠️ Set up Python and Poetry
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Install dependencies with Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install

- name: 🚀 Run All Fuel Profile
run: poetry run python -m src.main --email --settings settings_all_fuel.json
17 changes: 13 additions & 4 deletions settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"filters": {
"body": [
"4"
"2",
"3",
"4",
"5",
"6"
],
"min_year": "2020",
"kmto": "100000",
Expand Down Expand Up @@ -128,6 +132,14 @@
[
"hyundai",
"i30"
],
[
"suzuki",
"vitara"
],
[
"suzuki",
"scross"
]
],
"fuel_scores": {
Expand Down Expand Up @@ -155,9 +167,6 @@
}
},
"excluded_cars": {
"bmw": [
"118"
],
"citroen": [
"c3"
],
Expand Down
226 changes: 226 additions & 0 deletions settings_all_fuel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
{
"filters": {
"body": [
"2",
"3",
"4",
"5",
"6"
],
"min_year": "2020",
"kmto": "100000",
"min_power": "86",
"max_price": "20000",
"min_seats": "4",
"fuel": [
"2",
"3",
"B",
"D"
],
"emclass": "5",
"ensticker": "4",
"eq": [
"37"
],
"sort": "price"
},
"num_pages": 20,
"scoring_profiles": {
"standard": {
"favorite_models": [
[
"skoda",
"superb"
],
[
"skoda",
"octavia"
],
[
"skoda",
"kamiq"
],
[
"audi",
"x"
],
[
"seat",
"ateca"
],
[
"cupra",
"x"
],
[
"bmw",
"x"
],
[
"ford",
"explorer"
],
[
"jaguar",
"x"
],
[
"lexus",
"x"
],
[
"maserati",
"x"
],
[
"mazda",
"6"
],
[
"mercedes-benz",
"x"
],
[
"porsche",
"x"
],
[
"toyota",
"rav 4"
],
[
"toyota",
"camry"
],
[
"toyota",
"prius"
],
[
"toyota",
"yaris cross"
],
[
"volkswagen",
"arteon"
],
[
"volkswagen",
"tiguan"
],
[
"volkswagen",
"golf gti"
],
[
"honda",
"civic"
],
[
"honda",
"hr-v"
],
[
"opel",
"insignia"
],
[
"renault",
"arkana"
],
[
"hyundai",
"i30"
],
[
"suzuki",
"vitara"
],
[
"suzuki",
"scross"
]
],
"fuel_scores": {
"diesel": 0.8,
"electric/diesel": 1,
"electric/gasoline": 1,
"gasoline": 0.7,
"regular/benzine 91": 0.7,
"super 95": 0.7
},
"weights": {
"adaptive_cruise": 2,
"body_type": 2,
"coolness_factor": 2,
"emissions": 3,
"features": 3,
"fuel_type": 3,
"mileage": 3,
"power": 1,
"price": 4.5,
"registration_year": 3,
"seat_heating": 2,
"warranty": 3
}
}
},
"excluded_cars": {
"citroen": [
"c3"
],
"dacia": [
"logan",
"sandero"
],
"ford": [
"puma",
"fiesta"
],
"hyundai": [
"kona",
"i20",
"nexo"
],
"kia": [
"rio",
"niro"
],
"nissan": [
"micra",
"juke"
],
"opel": [
"astra",
"corsa",
"grandland x",
"grandland",
"crossland x",
"crossland",
"mokka"
],
"peugeot": [
"208",
"308"
],
"renault": [
"zoe",
"clio"
],
"seat": [
"ibiza"
],
"skoda": [
"scala",
"fabia"
],
"toyota": [
"c-hr"
],
"volkswagen": [
"caddy",
"taigo"
]
}
}
15 changes: 10 additions & 5 deletions settings_hybrid.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"min_year": "2020",
"kmto": "100000",
"min_power": "86",
"max_price": "22000",
"max_price": "20000",
"min_seats": "4",
"fuel": [
"2",
Expand Down Expand Up @@ -109,7 +109,7 @@
],
[
"volkswagen",
"golf gti"
"golf gte"
],
[
"honda",
Expand All @@ -130,6 +130,14 @@
[
"hyundai",
"i30"
],
[
"suzuki",
"vitara"
],
[
"suzuki",
"scross"
]
],
"fuel_scores": {
Expand Down Expand Up @@ -157,9 +165,6 @@
}
},
"excluded_cars": {
"bmw": [
"118"
],
"citroen": [
"c3"
],
Expand Down
Loading