Scrape a report table into a Google Sheet every day

How to scrape a report table into a Google Sheet every day: install the Chrome extension, click Build with Browser agent, tell the agent which page the report is on and which sheet to fill, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To scrape a report table into a Google Sheet, a Go to page step opens the report, a Get data from bot's current page step reads the rows and follows the table's Next button, and a Write data to a Google Sheet step adds them under the rows already there. A schedule runs it in the cloud each day, so the sheet holds the report's history. It is the way to get a report out of a web app that has no export button.

Author
Alex Barlow
Published

Build the report table scraper from a description


Describe it and click the button: the agent builds and tests the report scraper in your Chrome extension. See automate reporting for everything a reporting bot can do. A report behind a login needs a stored session or a saved login, so the scheduled run is signed in.

  1. Go to the report page I give you
  2. Scrape every row of the report table
  3. Do every page of the table
  4. Add the rows to my Google Sheet
  5. Schedule my bot
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

You need a Google Sheet to write to. Type sheet.new in Chrome to make one, and give the tab a name the agent can use, such as Report.

What the agent does when you click the button


The agent opens a browser in the cloud, asks for the report page and the sheet, then finds the table and its pager, builds the steps in the no-code builder and saves them, ready for you to run.

The Chrome extension's new automation panel with the five lines describing the report table scraper: go to the report page I give you, scrape every row of the report table, do every page of the table, add the rows to my Google Sheet, schedule my bot, and the Build with Agent button
1.Describe the report table scraper to the Browser agent in five lines and click Build with Agent.
A demo subscriptions report table open in a cloud browser beside the Browser Agent, which says it will scrape all nine columns of every row, 54 rows on a single page with no Next control, and append them to Sheet1 of the Google Sheet, asks is that right, is told yes, build it, then saves the automation and verifies it with a live run
2.The agent says what it will build: scrape all nine columns of the table's 54 rows and append them to the sheet. Confirm, and it saves the bot and test-runs it.
The report table scraper in the no-code builder with three steps, Go to page, Get data from bot's current page and Write data to a Google Sheet, beside the Browser Agent's report: it scrapes all nine columns of the table, appends the rows to the sheet, found all 54 rows on one page with no Next control, and read the first five rows back from the sheet
3.The agent builds the bot in three steps and reports what it did. This report fits on one page, so there is nothing to page through, and the agent checked the first rows in the sheet against the report.
A Google Sheet named Report data filled with the scraped report table: one row per subscription with its number, start date, customer, plan, billing, seats, price per seat, monthly revenue and status
4.The result of the run: every row of the report table, scraped into the Google Sheet.

Build the report table scraper step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Go to page
    • URL: the page the report is on
  • 2.0 Get data from bot's current page
    • Select: the columns of the report table
    • Find pager: the table's Next button
    • Max results: the most rows the report holds
  • 3.0 Write data to a Google Sheet
    • Spreadsheet: your sheet
    • Sheet name: Report
    • DATA: [scrape-data]
    • Write options: Add to existing data

Common questions about scraping a report table into a Google Sheet


Why does the report scraper return only the first page of the table?

The pager was not found, or Max results is lower than the rows in the report. Select the table's Next button in Find pager, choosing Use element text when it stops after one page, and raise Max results to cover the whole report.

Why does the scraper write an empty report to the sheet?

The table had not loaded when the bot read it, or the run was sent to a login page. Add a Wait step before the scrape for a report that loads slowly, and store the site's cookie on the Go to page step so the cloud run is signed in.

Why are yesterday's report rows in the sheet twice?

Write options is Add to existing data, so every run appends what the table shows. Narrow the report to one day before the scrape, as in set a report's date range automatically, or choose Clear data before writing for a sheet that holds only the latest report.

How do I add the date to each row of the report?

Add a Date and time step and join its date to the scraped rows with Append or merge data before the sheet step.

Can I scrape the totals of a dashboard as well as a table?

Yes. Select the figures on the page in the Get data from bot's current page step, each as its own column, and set Max results to 1.

Should I scrape the report or download it?

Download the file when the web app has an export button, since the export holds every column. See download a report from a website to Google Drive on a schedule. Scrape when there is no export, or when you want the rows added to one sheet run after run.

Can the report go to Excel instead of Google Sheets?

Yes. Use the Write data to an Excel Sheet step in place of the Google Sheet step.

Can the bot email the report rows as well?

Yes. Add a Send an email step after the scrape. See email a daily report from a website.

Can I scrape a report table without code?

Yes. The automation is built from the five lines above with no code; you point and click to select the table's columns.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community. Collect only data you are allowed to use.

Related guides