=importFromWeb("https://reviews.example.com/product", "table", ".review-table", "paginate": ".next-button", "max_pages": 10) Many data sources sit behind login walls. importFromWeb supports passing cookies, API keys, or OAuth tokens either directly or via a credential manager.
=importFromWeb("https://example.com/crypto", "json", "script[type='application/json']") For non-tabular data (e.g., product names, prices, images), you can target repeating HTML elements. The function returns a 2D array where each matched element becomes a row. importfromweb
=importFromWeb(url, [data_type], [selector], [options]) | Parameter | Description | | :--- | :--- | | url | The full web address (e.g., "https://example.com/data" ). | | data_type | What to extract: "table" , "list" , "json" , "html" , or "auto" . | | selector | CSS selector or XPath (e.g., "table.price-table" , "div.results" ). | | options | Advanced settings: headers, pagination, caching, timeout. | 1. Automatic Table Detection The simplest use case. The function scans the DOM for <table> elements and converts them into a native grid. It can handle colspan / rowspan , nested tables, and inconsistent header rows. =importFromWeb("https://reviews
Example: Importing the latest currency exchange rates from a financial news site: The function returns a 2D array where each
Example: Scraping product listings from an e-commerce category page:
Example: Pulling live Bitcoin price from a crypto dashboard: