hhursev / recipe-scrapers

Python package for scraping recipes data
MIT License
1.61k stars 505 forks source link

Added scraper for Drinkoteket.se #1043

Open Pebkac03 opened 3 months ago

Pebkac03 commented 3 months ago

I've added a scraper for Drinkoteket.se.

This one was a bit tricky with the ingredients since they don't provide amounts in their schema. This works by parsing a list from the HTML with ingredients and then removing everything below the separator since those elements aren't part of the ingredients.

Resolves #1042

jknndy commented 3 months ago

Hi @Pebkac03, just a quick note. If you add Resolves #1042 to the original description of the PR (pull request) on a new line it will automatically close the issue you opened once this PR is merged.

Pebkac03 commented 2 months ago

Thanks, I will do that. I realized that the site has a tendency of not having a standard way of doing many things leading me to suspect a substantial risk of annoying edge cases requiring a lot of testing to be certain of it being bug-free which I currently do not have the time for. You could either merge it as is if you want, there are very few recipes with a differing serving amount or if you feel it needs to be more stable, mark it as a draft and I'll do it sometime in the future unless anyone else wants to contribute.