~ihabunek/harvey

c0e06c4773cd208872c88455e99826764931d2c3 — Ivan Habunek 5 months ago 9af477e
Add laptops category
M lib/harvey.ex => lib/harvey.ex +2 -1
@@ 19,7 19,7 @@ defmodule Harvey do
    Harvey.Providers.Mikronis,
    Harvey.Providers.SanctaDomenica,
    Harvey.Providers.SvijetMedija,
    Harvey.Providers.Neutrino,
    Harvey.Providers.Neutrino
    # TODO: Mall.hr disabled because it cannot be accessed from the digital
    # ocean droplet. Investigate.
    # Harvey.Providers.MallHr,


@@ 42,6 42,7 @@ defmodule Harvey do
    {:hardware, :cpus, "CPUs"},
    {:hardware, :graphics, "Graphic cards"},
    {:hardware, :hard_drives, "Hard drives"},
    {:hardware, :laptops, "Laptops"},
    {:hardware, :monitors, "Monitors"},
    {:hardware, :motherboards, "Motherboards"},
    {:hardware, :ram, "RAM"},

M lib/harvey/providers/adm.ex => lib/harvey/providers/adm.ex +1 -0
@@ 9,6 9,7 @@ defmodule Harvey.Providers.Adm do
    cpus: "https://www.adm.hr/procesori-cpu-091/37/",
    graphics: "https://www.adm.hr/graficke-kartice-gfx-097/41/",
    hard_drives: "https://www.adm.hr/pohrana-podataka-098/42/",
    laptops: "https://www.adm.hr/laptopi/2/l/?catef=10,9,8",
    monitors: "https://www.adm.hr/business-monitori-052/16/",
    monitors: "https://www.adm.hr/gaming-monitori-051/15/",
    monitors: "https://www.adm.hr/uredski-monitori-053/17/",

M lib/harvey/providers/elipso.ex => lib/harvey/providers/elipso.ex +5 -4
@@ 6,13 6,14 @@ defmodule Harvey.Providers.Elipso do
  @behaviour Provider

  @categories [
    dish_washers: "https://www.elipso.hr/bijela-tehnika/perilice-posuda/",
    fridges_freezers: "https://www.elipso.hr/bijela-tehnika/hladnjaci/",
    fridges_freezers: "https://www.elipso.hr/bijela-tehnika/zamrzivaci/",
    washers_dryers: "https://www.elipso.hr/bijela-tehnika/perilice-rublja/",
    washers_dryers: "https://www.elipso.hr/bijela-tehnika/susilice-rublja/",
    dish_washers: "https://www.elipso.hr/bijela-tehnika/perilice-posuda/",
    laptops: "https://www.elipso.hr/informatika/laptopi/",
    monitors: "https://www.elipso.hr/informatika/monitori/",
    tvs: "https://www.elipso.hr/audio__video/televizori/",
    monitors: "https://www.elipso.hr/informatika/monitori/"
    washers_dryers: "https://www.elipso.hr/bijela-tehnika/perilice-rublja/",
    washers_dryers: "https://www.elipso.hr/bijela-tehnika/susilice-rublja/"
  ]

  @impl Provider

M lib/harvey/providers/harvey_norman.ex => lib/harvey/providers/harvey_norman.ex +5 -4
@@ 6,12 6,13 @@ defmodule Harvey.Providers.HarveyNorman do
  @behaviour Provider

  @categories [
    fridges_freezers: "https://www.harveynorman.hr/bijela-tehnika/hladnjaci-i-zamrzivaci",
    washers_dryers: "https://www.harveynorman.hr/bijela-tehnika/perilice-i-susilice-rublja",
    dish_washers: "https://www.harveynorman.hr/bijela-tehnika/perilice-posuda",
    tvs: "https://www.harveynorman.hr/audio-video/televizori",
    fridges_freezers: "https://www.harveynorman.hr/bijela-tehnika/hladnjaci-i-zamrzivaci",
    laptops: "https://www.harveynorman.hr/informatika/laptopi",
    monitors: "https://www.harveynorman.hr/informatika/racunalna-periferija/monitori",
    smartphones: "https://www.harveynorman.hr/mobiteli/smartphone"
    smartphones: "https://www.harveynorman.hr/mobiteli/smartphone",
    tvs: "https://www.harveynorman.hr/audio-video/televizori",
    washers_dryers: "https://www.harveynorman.hr/bijela-tehnika/perilice-i-susilice-rublja"
  ]

  @impl Provider

M lib/harvey/providers/hgspot.ex => lib/harvey/providers/hgspot.ex +1 -0
@@ 8,6 8,7 @@ defmodule Harvey.Providers.Hgspot do
  @categories [
    cpus: "https://www.hgspot.hr/it-oprema/komponente/procesori",
    graphics: "https://www.hgspot.hr/it-oprema/komponente/graficke-kartice",
    laptops: "https://www.hgspot.hr/racunala/prijenosna-racunala/laptopi",
    motherboards: "https://www.hgspot.hr/it-oprema/komponente/maticne-ploce",
    ram: "https://www.hgspot.hr/it-oprema/komponente/radna-memorija",
    smartphones: "https://www.hgspot.hr/mobiteli-i-oprema/mobilni-telefoni/smartphones",

M lib/harvey/providers/instar.ex => lib/harvey/providers/instar.ex +4 -3
@@ 8,10 8,11 @@ defmodule Harvey.Providers.Instar do
  @categories [
    cpus: "https://www.instar-informatika.hr/procesori/34/",
    graphics: "https://www.instar-informatika.hr/graficke-kartice/48/",
    hard_drives: "https://www.instar-informatika.hr/ssd-diskovi/1809/",
    hard_drives: "https://www.instar-informatika.hr/pc-diskovi/449/",
    hard_drives: "https://www.instar-informatika.hr/hard-disk-za-laptop/450/",
    hard_drives: "https://www.instar-informatika.hr/eksterni-hard-diskovi/1810/",
    hard_drives: "https://www.instar-informatika.hr/hard-disk-za-laptop/450/",
    hard_drives: "https://www.instar-informatika.hr/pc-diskovi/449/",
    hard_drives: "https://www.instar-informatika.hr/ssd-diskovi/1809/",
    laptops: "https://www.instar-informatika.hr/laptopi/2/",
    motherboards: "https://www.instar-informatika.hr/maticne-ploce/33/",
    ram: "https://www.instar-informatika.hr/memorija-za-laptop/758/",
    ram: "https://www.instar-informatika.hr/memorija/35/"

M lib/harvey/providers/links.ex => lib/harvey/providers/links.ex +1 -0
@@ 26,6 26,7 @@ defmodule Harvey.Providers.Links do
    graphics: "129",
    hard_drives: "115",
    hard_drives: "690",
    laptops: "1053",
    monitors: "244",
    motherboards: "25",
    ovens: "1497",

M lib/harvey/providers/mikronis.ex => lib/harvey/providers/mikronis.ex +1 -0
@@ 9,6 9,7 @@ defmodule Harvey.Providers.Mikronis do
    cpus: "https://www.mikronis.hr/katalog/informatika/komponente/procesori/",
    graphics: "https://www.mikronis.hr/katalog/informatika/komponente/graficke-kartice/",
    hard_drives: "https://www.mikronis.hr/katalog/informatika/komponente/hdd-i-ssd/",
    laptops: "https://www.mikronis.hr/katalog/informatika/laptopi/",
    motherboards: "https://www.mikronis.hr/katalog/informatika/komponente/maticne-ploce/",
    ram: "https://www.mikronis.hr/katalog/informatika/komponente/memorije-za-racunala/",
    smartphones: "https://www.mikronis.hr/katalog/elektronika/mobiteli-i-tableti/mobiteli/"

M lib/harvey/providers/sancta_domenica.ex => lib/harvey/providers/sancta_domenica.ex +2 -0
@@ 9,12 9,14 @@ defmodule Harvey.Providers.SanctaDomenica do
    dish_washers: "https://www.sancta-domenica.hr/bijela-tehnika/perilice-posuda.html",
    fridges_freezers: "https://www.sancta-domenica.hr/bijela-tehnika/hladnjaci.html",
    fridges_freezers: "https://www.sancta-domenica.hr/bijela-tehnika/zamrzivaci.html",
    # graphics category URL is correct but is currently empty
    graphics:
      "https://www.sancta-domenica.hr/racunala-i-periferija/racunalne-komponente/graficke-kartice.html",
    hard_drives:
      "https://www.sancta-domenica.hr/racunala-i-periferija/racunalne-komponente/hard-diskovi-ssd.html",
    hard_drives:
      "https://www.sancta-domenica.hr/racunala-i-periferija/racunalne-komponente/hdd-ssd-interni.html",
    laptops: "https://www.sancta-domenica.hr/racunala-i-periferija/prijenosna-racunala.html",
    monitors: "https://www.sancta-domenica.hr/racunala-i-periferija/it-monitori/laserski.html",
    motherboards:
      "https://www.sancta-domenica.hr/racunala-i-periferija/racunalne-komponente/maticne-ploce.html",

M lib/harvey/providers/svijet_medija.ex => lib/harvey/providers/svijet_medija.ex +1 -0
@@ 9,6 9,7 @@ defmodule Harvey.Providers.SvijetMedija do
    dish_washers: "https://www.svijet-medija.hr/gg/206/perilice-posuda",
    fridges_freezers: "https://www.svijet-medija.hr/gg/205/hladnjaci",
    fridges_freezers: "https://www.svijet-medija.hr/gg/4462/zamrzivaci",
    laptops: "https://www.svijet-medija.hr/gg/3/laptopi",
    ovens: "https://www.svijet-medija.hr/gg/201/ugradbene-pecnice",
    smartphones: "https://www.svijet-medija.hr/gg/88/mobiteli",
    tvs: "https://www.svijet-medija.hr/gg/74/televizori",