Week Meal Plan #4 - scraping each recipe from BBC Good FoodLet's keep moving, folks! We have all the URLs for all recipes we want to save. Now, let's see what we will have to do to scrap it. Let's use this Caponata recipe as example. I checked if there were any API calls with a response containing the recipe...Nov 25, 2020 · 7 min readmurilobd.hashnode.dev
Week Meal Plan #3 - scraping another websiteHey you! Let's continue scraping websites (well... the first one was only API calls, I know. And I'm not complaining hehehe! Way easier, right?) and this time, let's dive into BBC Good Food Recipes. Again, I'll focus only in one category for the sak...Nov 24, 2020 · 8 min readmurilobd.hashnode.dev
How to reverse a string using JavaScript?Some different ways to reverse a string Array method const string = "Let's reverse this"; return string.split("").reverse().join(""); For-loop function reverse(str) { let final = ""; for (let i = str.length - 1; i >= 0; i--) { ...Nov 19, 2020 · 1 min readmurilobd.hashnode.dev
Find non-duplicated items in listImagine this: you have a list of many items you bought on supermarket and you want to know which ones are not duplicated. With indexOf and lastIndexOf, we can do that easily. indexOf will return the first occurrence of the item in the array. lastInde...Nov 19, 2020 · 2 min readmurilobd.hashnode.dev
Week Meal Plan #2 - scraping websitesContinuing the development of Week Meal Plan, we already have a good list of websites that have recipes we can borrow to create our week meal plan suggestion: https://marmiton.org (French) https://panelinha.com.br (Portuguese) https://tudogostoso.co...1DNov 18, 2020 · 8 min readmurilobd.hashnode.dev