File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ type Recipe struct {
2626 Steps []string
2727 Yield string
2828 Difficulty string
29- Preperation string
29+ Preparation string
3030 Cook string
3131 Nutrition NutritionInfo
3232}
@@ -54,10 +54,10 @@ func Scrape(recipe string) (Recipe, error) {
5454
5555 difficulty := strings .TrimSpace (doc .Find ("section.recipe-details__item--skill-level" ).Text ())
5656
57- preperationSpan := doc .Find (".recipe-details__cooking-time-prep" )
58- preperationSpan .Find ("strong" ).Remove ()
57+ preparationSpan := doc .Find (".recipe-details__cooking-time-prep" )
58+ preparationSpan .Find ("strong" ).Remove ()
5959
60- preperation := strings .TrimSpace (preperationSpan .Text ())
60+ preparation := strings .TrimSpace (preparationSpan .Text ())
6161
6262 cookSpan := doc .Find (".recipe-details__cooking-time-cook" )
6363 cookSpan .Find ("strong" ).Remove ()
@@ -80,7 +80,7 @@ func Scrape(recipe string) (Recipe, error) {
8080 Steps : steps ,
8181 Yield : yield ,
8282 Difficulty : difficulty ,
83- Preperation : preperation ,
83+ Preparation : preparation ,
8484 Cook : cook ,
8585 Nutrition : nutrition ,
8686 }
You can’t perform that action at this time.
0 commit comments