mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
6.59k stars 676 forks source link

[SCRAPER] - recepti.index.hr #2733

Closed njic closed 9 months ago

njic commented 9 months ago

First Check

Please provide 1-5 example URLs that are having errors

https://recepti.index.hr/recept/1328-burek-sa-sirom https://recepti.index.hr/recept/125-juha-od-crvene-lece-i-slanutka https://recepti.index.hr/recept/1140-keksi-sa-slanutkom-i-komadicima-cokolade

None of them work

{
  "@context": "https://schema.org/",
  "@type": "Recipe",
  "name": "Burek sa sirom",
  "mainEntityOfPage": "https://recepti.index.hr/recept/1328-burek-sa-sirom",
  "image": "https://recepti-api.index.hr/img/preview/large/recipe/1feb781c-ab3d-4dd7-bec0-0ae5b3c7c4a4/shutterstock_1723231303.jpg",
  "description": "Burek, tvrde naši susjedi iz Bosne, može biti samo od mesa, a sve ostalo su pite. No burek je originalno iz Turske, a tamo ga najčešće pripremaju upravo sa sirom. Pita ili burek, svi se možemo složiti da je najbolji kad je poslužen topli uz čašu hladnog jogurta.",
  "prepTime": "P0DT20M",
  "cookTime": "P0DT40M",
  "totalTime": "P0DT1H",
  "author": {
    "@context": "https://schema.org/",
    "@type": "Organization",
    "logo": {
      "@type": "ImageObject",
      "url": "https://recepti.index.hr/assets/images/logo.png",
      "width": 209,
      "height": 60,
      "contentUrl": "https://recepti.index.hr/assets/images/logo.png"
    },
    "name": "Index Recepti",
    "sameAs": [
      "https://www.facebook.com/indexrecepti",
      "https://www.instagram.com/indexrecepti",
      "https://www.youtube.com/channel/UChI1LgbY5xccw1iGoOCtdyA",
      "https://www.index.hr/tag/15185/recepti.aspx"
    ],
    "url": "https://recepti.index.hr"
  },
  "recipeIngredient": [
    "650 g gotovih kora za pite",
    "500 g svježeg kravljeg punomasnog sira ",
    "½ žličice soli",
    "100 ml suncokretovog ulja",
    "500 ml mineralne vode"
  ],
  "recipeYield": 4,
  "recipeCategory": [
    "Kruh i peciva",
    "Jeftini recepti",
    "Bosanska kuhinja",
    "Turska kuhinja"
  ],
  "datePublished": "2021-10-22T17:50:17.4956482",
  "recipeInstructions": [
    {
      "@type": "HowToStep",
      "name": "Premažite lim za pečenje",
      "text": "Koristite okrugli kalup promjera 33 cm. Dno kalupa premažite s 3 žlice ulja, a zatim položite dvije kore na dno i lagano ih rukama pritisnite.",
      "position": 1
    },
    {
      "@type": "HowToStep",
      "name": "Pomiješajte",
      "text": "U veću posudu ulijte mineralnu vodu, sol i preostalo ulje te pjenjačom dobro promiješajte sastojke.",
      "position": 2
    },
    {
      "@type": "HowToStep",
      "name": "Slažite",
      "text": "Kore lagano premažite pripremljenom tekućinom, a na koru stavite 2 do 3 žlice sira. Sir lagano rasporedite po površini kore ( sa žlice skidajte male količine sira i stavljajte ga kao male hrpice). Stavite praznu koru i opet ju lagano utisnite rukama i premažite kistom i mješavinom ulja, soli i mineralne vode. Sir ponovno rasporedite po površini. Ponovite postupak s dodavanjem kore, a na nju ovaj put sir rasporedite po rubovima. Višak kora koji visi prema van sada preklopite prema unutra i lagano premažite kistom. Ovaj put nemojte stavljati sir, ali stavite praznu koru. Na praznoj kori ponovite cijeli postupak, dok ne potrošite sav sir. Zadnje dvije kore stavite na sloj sira, lagano pritisnite rukama, premažite kistom, a višak preklopite prema unutra. Još malo premažite površinu te je lagano izbodite čačkalicom.",
      "position": 3
    },
    {
      "@type": "HowToStep",
      "name": "Pecite",
      "text": "Zagrijte pećnicu na 210 stupnjeva i pecite 40 minuta. Izvadite iz pećnice i rubove odvojite pomoću noža, pažljivo preokrenite na dasku, narežite na 4 dijela i poslužite.",
      "position": 4
    }
  ],
  "recipeCuisine": [
    "Bosanska",
    "Turska"
  ],
  "keywords": "burek sa sirom, svježi sir, gotove kore, vučeno tijesto",
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": 5,
    "ratingCount": 28,
    "itemReviewed": "Burek sa sirom",
    "bestRating": "5",
    "worstRating": "1"
  },
  "review": [
    {
      "@type": "Review",
      "datePublished": "2023-09-20T21:34:50.8526686",
      "reviewBody": "Po turski, odakle je i doslo ovo jelo, svaka pita je burek. Znaci i od mesa i od sira i od krumpira iod povrca",
      "author": {
        "@type": "Person",
        "name": "m84",
        "url": "https://recepti.index.hr/korisnik/m84",
        "sameAs": [],
        "email": "thetrooper1976@gmail.com"
      }
    },
    {
      "@type": "Review",
      "datePublished": "2023-08-29T10:00:53.5667576",
      "reviewBody": "dobar!",
      "author": {
        "@type": "Person",
        "name": "Robert",
        "url": "https://recepti.index.hr/korisnik/aresss",
        "sameAs": [],
        "email": "robiskaro@gmail.com"
      },
      "reviewRating": {
        "@type": "Rating",
        "worstRating": "1",
        "bestRating": "5",
        "ratingValue": 5
      }
    },
    {
      "@type": "Review",
      "datePublished": "2023-06-29T16:53:34.9169732",
      "reviewBody": "Sve stoji za napisano da je burek pecivo, porijeklom tursko jelo,  i da moze biti od bilo kojeg punjenja. Ali kad hocete da jedete vrhunski burek i bilo koju drugu pitu, onda dodjete u Bosnu i tu se gozbite. Sve splacine koje prodajte po pekarama pod bureke su ustvari kuhani dzonovi obuce u poredjenju sa bosanskom sirnicom, zeljanicom, krompirusom i burekom. ",
      "author": {
        "@type": "Person",
        "name": "faruk2",
        "url": "https://recepti.index.hr/korisnik/faruk2",
        "sameAs": [],
        "email": "false1zb@gmail.com"
      }
    },
    {
      "@type": "Review",
      "datePublished": "2023-06-29T04:28:48.6545228",
      "reviewBody": "Burek je UVIJEK sa SIROM, SIROM, SIROM!!! Burek sa SIROM!!! ",
      "author": {
        "@type": "Person",
        "name": "drazen102",
        "url": "https://recepti.index.hr/korisnik/drazen102",
        "sameAs": [],
        "email": "drpongrac23@gmail.com"
      }
    },
    {
      "@type": "Review",
      "datePublished": "2023-02-23T21:10:32.224485",
      "reviewBody": "Burek je s mesom!",
      "author": {
        "@type": "Person",
        "name": "klemcho13",
        "url": "https://recepti.index.hr/korisnik/klemcho13",
        "sameAs": [],
        "email": "nikoklemen868@gmail.com"
      }
    },
    {
      "@type": "Review",
      "datePublished": "2022-12-11T22:59:24.4554518",
      "reviewBody": "Dobra riceta, burek odličan. Bosanci sviraju kurcu, kad nas je oduvik burek sa sirom.",
      "author": {
        "@type": "Person",
        "name": "a8",
        "url": "https://recepti.index.hr/korisnik/a8",
        "sameAs": [],
        "email": "trljbrlj@yahoo.com"
      }
    },
    {
      "@type": "Review",
      "datePublished": "2022-05-19T12:16:15.8447944",
      "reviewBody": "Svaka čast da je netko konačno stao na kraj bosanskom svojatanju tuđih jela.",
      "author": {
        "@type": "Person",
        "name": "bobi4",
        "url": "https://recepti.index.hr/korisnik/bobi4",
        "sameAs": [],
        "email": "mjamoon@protonmail.com"
      },
      "reviewRating": {
        "@type": "Rating",
        "worstRating": "1",
        "bestRating": "5",
        "ratingValue": 5
      }
    }
  ]
}

Please provide your logs for the Mealie container docker logs <container-id> > mealie.logs

_mealie_logs.txt

Deployment

Docker (Linux)

Kuchenpirat commented 9 months ago

hi, thanks for raising this issue.

i can currently not reproduce your situation.

Can you give some more information to reproduce this issue?

njic commented 9 months ago

I'm sorry if this issue was made wrong. If I change to Debug Scraper I get the same message as you recipe_scrapers was unable to scrape this URL

Seems like its the same on my instance and on Demo portal. Is there anything else I can provide?

Kuchenpirat commented 9 months ago

how did you get the data you posted above?

I can see that it is present on the website when using inspect element, but i have not found any way of picking it up with the scraper

njic commented 9 months ago

I got that data from inspect element

I feel stupid...I thought that was the way to verify that the site provides recipe data. I obviously missunderstood...

Kuchenpirat commented 9 months ago

ah ok, no worries. So this would not be an mealie issue then, but an feature request for the underlying scraper package.

You would have to open an issue with the request to add the website with them: https://github.com/hhursev/recipe-scrapers

When implemented we will periodically update the scraper version so that feature will eventually land in mealie.

Will close as this is not a mealie issue.

njic commented 9 months ago

Thank you, I will open issue with the request!