-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for lacucinaitaliana.it and lacucinaitaliana.com (#1456)
* Add support for lacucinaitaliana.it * Changed author parsing * Add support for the lacucinaitaliana english website * Minor formatting changes in test data * Re-order JSON keys * Fix formatting
- Loading branch information
1 parent
878c050
commit 5200083
Showing
6 changed files
with
1,562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from ._abstract import AbstractScraper | ||
|
||
|
||
class LaCucinaItaliana(AbstractScraper): | ||
@classmethod | ||
def host(cls, domain="it"): | ||
return f"lacucinaitaliana.{domain}" | ||
|
||
def author(self): | ||
return "La Cucina Italiana" |
28 changes: 28 additions & 0 deletions
28
tests/test_data/lacucinaitaliana.com/lacucinaitaliana.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"author": "La Cucina Italiana", | ||
"canonical_url": "https://www.lacucinaitaliana.com/recipe/pasta/caserecce-with-broccoli-and-tuna", | ||
"site_name": "La Cucina Italiana", | ||
"host": "lacucinaitaliana.it", | ||
"language": "en-US", | ||
"title": "Casarecce Pasta With Broccoli and Tuna", | ||
"ingredients": [ | ||
"12OZ. casarecce or other short pasta", | ||
"12OZ. broccoli crowns", | ||
"5OZ. oil-packed tuna", | ||
"2OZ. shallot, chopped", | ||
"wild fennel", | ||
"red chili pepper", | ||
"2SPRIG thyme", | ||
"extra-virgin olive oil", | ||
"salt" | ||
], | ||
"instructions_list": [ | ||
"Boil the broccoli in a large pot of unsalted water until just crisp-tender, around 3 minutes. Drain with a slotted spoon. Add salt to the water and add pasta to cook until al dente.", | ||
"In the meantime, chop thyme and wild fennel. Sauté broccoli and chopped shallot in oil. Add tuna, chili pepper, chopped thyme and fennel, salt and 2 ladles (around 1 cup) pasta cooking water. Cook for 10 minutes.", | ||
"Drain the pasta when al dente and return to the warm pot. Stir in the sauce and sauté to coat. Serve immediately." | ||
], | ||
"yields": "4 servings", | ||
"description": "This simple pasta with tuna and broccoli is the perfect weeknight meal.", | ||
"total_time": 30, | ||
"image": "https://rms.condenast.it/rms/public/5d3/f03/de5/thumb_982_1200_670_0_0_auto.jpg" | ||
} |
173 changes: 173 additions & 0 deletions
173
tests/test_data/lacucinaitaliana.com/lacucinaitaliana.testhtml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"author": "La Cucina Italiana", | ||
"canonical_url": "https://www.lacucinaitaliana.it/ricetta/dolcetti-fillo-frutta-secca-miele/", | ||
"site_name": "La Cucina Italiana", | ||
"host": "lacucinaitaliana.it", | ||
"language": "it-IT", | ||
"title": "Dolcetti di pasta fillo, frutta secca e miele", | ||
"ingredients": [ | ||
"250 g frutta secca mista (fichi secchi, datteri, uvetta ammorbiditain acqua, noci, mandorle,albicocche disidratate)", | ||
"6 fogli di pasta fillo", | ||
"miele", | ||
"acqua di rose" | ||
], | ||
"instructions_list": [ | ||
"Sminuzzate la frutta secca e mescolatela ottenendo un granulato. Profumatelo con acqua di rose.", | ||
"Disponete i fogli di fillo sovrapposti a due a due.", | ||
"Spennellateli con il miele, quindi distribuitevi sopra il granulato.", | ||
"Tagliate ogni doppio foglio in 4 strisce. Arricciate la pasta e arrotolatela a spirale, senza mai staccarvi dal piano di lavoro. Una volta ottenuta una chiocciolina per ogni striscia, adagiatela nell’incavo di uno stampo multiplo da muffin. Riempitelo tutto.", | ||
"Infornate lo stampo a 200 °C per circa 15 minuti.", | ||
"Sfornate e togliete i dolcetti dallo stampo, quindi serviteli con altro miele." | ||
], | ||
"yields": "12 servings", | ||
"description": "Scoprite come preparare i Dolcetti di pasta fillo, frutta secca e miele, una ricetta dal sapore orientale", | ||
"total_time": 35, | ||
"image": "https://media-assets.lacucinaitaliana.it/photos/67766a9c882f5b2b196e4cfc/16:9/w_1600,h_900,c_limit/Dolcetti%20di%20fillo,%20frutta%20secca%20e%20miele%20copia.jpg", | ||
"keywords": [ | ||
"dolcetti", | ||
"miele api", | ||
"frutta secca", | ||
"vegetariana", | ||
"facile", | ||
"magazine" | ||
] | ||
} |
Oops, something went wrong.