spruce_the_data: messy HTML and text to clean JSON
Pricing
from $10.00 / 1,000 cleaned items
Go to Apify Store
spruce_the_data: messy HTML and text to clean JSON
Turns messy scraped text or HTML into clean JSON that matches your schema.
spruce_the_data: messy HTML and text to clean JSON
Pricing
from $10.00 / 1,000 cleaned items
Turns messy scraped text or HTML into clean JSON that matches your schema.
You can access the spruce_the_data: messy HTML and text to clean JSON programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
$echo '{< "texts": [< "<h1> Stellar Gooseneck Kettle 1.0L </h1><span class=\\"price\\">$49.99</span> In stock"< ],< "outputSchema": {< "type": "object",< "properties": {< "name": {< "type": "string"< },< "price": {< "type": [< "number",< "null"< ]< },< "currency": {< "type": [< "string",< "null"< ],< "description": "ISO 4217 code, e.g. USD"< },< "in_stock": {< "type": [< "boolean",< "null"< ]< }< },< "required": [< "name",< "price",< "currency",< "in_stock"< ]< }<}' |<apify call sprucethedata/clean-json --silent --output-datasetThe Apify CLI is the official tool that allows you to use spruce_the_data: messy HTML and text to clean JSON locally, providing convenience functions and automatic retries on errors.
Using installation script (macOS/Linux):
$curl -fsSL https://apify.com/install-cli.sh | bashUsing installation script (Windows):
$irm https://apify.com/install-cli.ps1 | iexUsing Homebrew:
$brew install apify-cliUsing npm:
$npm install -g apify-cliOther API clients include: