1.0 KiB
1.0 KiB
phantom-exo / Modules / marmiton/parsing
Module: marmiton/parsing
Table of contents
Functions
Functions
scrapResultFromLink
▸ Const scrapResultFromLink(links, urlStart): { commentCount: number ; name: string ; score: number ; url: string }[]
function that extract content from DOM links into the marmiton search page
Parameters
| Name | Type | Description |
|---|---|---|
links |
Element[] |
scrapped dom elements representing recipes in marmiton |
urlStart |
string |
url to prefix recipes links |
Returns
{ commentCount: number ; name: string ; score: number ; url: string }[]
name, link, comments and score of recipes
Defined in
marmiton/parsing.ts:7