To CSV
Convert an HTML document into a CSV file.
NodeJS
const html = await getHTML("http://www.cloudbrowser.ai");
if (!html) return;
const csv = await ai.toCSV({
html: html,
headers: "Name,Price,Duration",
});
console.log("CSV:", csv.response);.NET
var html = await GetHTML("http://www.cloudbrowser.ai").ConfigureAwait(false);
if (html == null) return;
var csv = await ai.ToCSV(new() {
Html = html,
Headers = "Name,Price,Duration"
}).ConfigureAwait(false);/api/v1/ai/ToCSV – Convert HTML to a CSV File
Last updated