Skip to content

Extract data from a website to Excel, CSV or JSON

Paste the address of a public page and ChatYourData returns the fields you name, such as the product, price and availability. For a whole site it learns the page layout from a few examples and then collects every matching page into one table.

What is on the page

Read from https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html

Product page

  • Product nameA Light in the Attic
  • Price51.77
  • Currency£
  • AvailabilityIn stock (22 available)
  • Product codea897fe39b1053632
  • CategoryBooks
  • DescriptionIt's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition.

The result below is real and comes from a practice shop made for scraping. Paste the address of any public page to read your own. Public pages only, one page at a time, five reads without an account. We follow robots.txt and skip values that are not on the page.

What companies collect from websites

The same steps work for any page that repeats one layout. These are the most common jobs, with the fields people usually ask for.

JobFieldsWhere the data goes
Competitor price monitoringname, price, currency, availability, product codeA price list in Excel, refreshed on a schedule
Supplier and manufacturer cataloguesname, code, description, technical parametersYour shop or ERP product data
Company contact detailscompany name, e-mail, phone, address, registration numberA CRM import file
Job listingstitle, company, location, salary, contract typeA market overview for HR
Property listingsprice, area, rooms, locationA comparison sheet
Articles and press releasestitle, author, publication date, leadA media monitoring report

How to extract data from a website to Excel

Create an extractor in the app, give it the address of the site and list the fields you want. ChatYourData finds the pages from the sitemap, groups them by address pattern, for example every page under /product/, and reads five of them with the language model.

From those examples it works out rules for the layout and uses them on all the other pages in the group. The records land in one table that you can download as CSV or JSON, or open as a sheet and ask questions about it in plain language.

Why this works without CSS selectors

A classic scraper needs someone to write a selector for every field and to fix it each time the site changes. Here you describe the field in words, and the model finds it on the page.

When more than about a third of recent pages stop matching the learned rules, the extractor treats it as a layout change and learns the rules again from fresh examples.

What keeps the data trustworthy

A value returned by the model is kept only when it is actually present on the page. Anything else is dropped and reported as an issue, so an invented price never reaches your sheet.

Each field also says whether it came from a learned rule or from the model, which makes it easy to spot pages that need a second look.

Which pages can be read

ChatYourData reads public pages, including those that build their content with JavaScript. It follows robots.txt and waits between requests to the same site.

It does not log in, solve CAPTCHAs or work around blocks. Before you collect data, check the terms of the site and remember that personal data is covered by privacy law even when it is public.

One page through the API

Send the address with a list of fields and read the values from the response. To reuse rules learned in the app, pass extractor_id instead of a schema.

Request
curl https://api.chatyourdata.pl/v1/web/extract \
  -H "X-Api-Key: $CYD_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://shop.example.com/product/rack-rp-1",
    "schema": { "fields": [
      { "name": "name",  "type": "text" },
      { "name": "price", "type": "money" },
      { "name": "ean",   "type": "text" }
    ] }
  }'
Response (shortened)
{
  "data": {
    "url": "https://shop.example.com/product/rack-rp-1",
    "status": "done",
    "values": { "name": "Rack RP-1", "price": 499.0, "ean": "5901234123457" },
    "fields": {
      "name":  { "value": "Rack RP-1", "source": "rule",  "issues": [] },
      "price": { "value": 499.0,       "source": "model", "issues": [] }
    },
    "issues": [],
    "model_used": true
  }
}

Questions about Website to Excel

How do I extract data from a website to Excel automatically?

Set up an extractor with the site address and the fields you need. It collects all matching pages into a table that you download as CSV or open as a sheet, and it can be read again later to pick up changes.

Do I need to know how to code?

No. You name the fields in the app and paste an address. The API is there for teams that want the records in their own system.

Does it work on pages rendered with JavaScript?

Yes. When a page has no content in its HTML, it is opened in a browser engine first and read after the content appears.

Can it read pages behind a login?

No. Only public pages are read, and robots.txt is respected.

What does it cost?

Pages read with learned rules alone are free. A page counts towards your plan only when the language model had to work on it.

Collect your first website into a table

A trial account includes 200 pages over 14 days, with no card required.