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...7 min read·murilobd.hashnode.devNov 25, 2020
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...8 min read·murilobd.hashnode.devNov 24, 2020
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--) { ...1 min read·murilobd.hashnode.devNov 19, 2020
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...2 min read·murilobd.hashnode.devNov 19, 2020
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...8 min read·murilobd.hashnode.dev1DNov 18, 2020