scrapehtml - Scrape HTML
Scrape a provided HTML string or Website.
html
string
HTML string to be scraped.
Example:
<div><a href='https://1001fx.com'>1001fx</a></div>
url
url
Website to be scraped.
Example:
https://1001fx.com/blog
selectors
array<object>
Array of selectors to search for.
Example:
[
{
"selector": "#__next > div > div > main > div > div > div > a",
"attribute": "href",
"keyField": "url"
}
]
selector
string
The CSS selector to search for.
Example:
#__next > div > div > main > div > div > div > a
attribute
string
The attribute to return. E.g.: href, src, text.
Example:
href
keyField
string
The field to store the found value in.
Example:
url