Daily
Copy a table from a web page into a sheet every morning
Each morning the listings on a page you choose are added to your Google Sheet, and you get the same rows by email as a CSV.
- Runs
- Daily
- Apps
- Gmail, Google Sheets
- AI
- Not needed
- Access
- Sheets read+write (only the sheets you pick when connecting); Gmail gmail.send
Send this to your assistant
Create a ClickRuntime automation: each day at 8am, take the listings table on this page, add the rows to my Google Sheet and email me the CSV.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A property buyer checks the same listings page every morning, copying new entries into a spreadsheet to compare prices over time. Miss a few days and the history has gaps; do it by hand and it takes twenty minutes before the working day has started.
This automation reads the table on the page every morning, adds the rows to your sheet with the date, and emails you a CSV of what it found. You get a growing history without visiting the page.
What you get out of it
A history the page itself does not keep
Most listing and price pages only show today. Saving a copy each day lets you see how prices, stock or rankings changed over weeks.
Same time, same format, every day
Rows arrive in a consistent shape at a fixed time, which makes charts and formulas in the sheet reliable.
The data in your inbox too
The CSV email is a quick read on your phone and a backup copy if the sheet is edited by mistake.
Frees up the first part of the morning
Copying rows by hand is small but daily. Removing it gives back time and removes typing errors.
How it works
What happens, step by step
Every day at 8am ClickRuntime opens the web page you chose and reads the table on it.
Each row is stamped with today's date.
The rows are added to the bottom of your Google Sheet.
You get an email with the same rows attached as CSV text.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- Connect your Google Sheets account and pick the spreadsheets it may use
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Gmail and Google Sheets steps into one automation
Under the hood
The code that runs this automation
import csv, io
from datetime import date
from bs4 import BeautifulSoup
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, notify
URL = "https://listings.example.com/today"
SHEET_ID = "your-spreadsheet-id"
@on_trigger
def run(event):
soup = BeautifulSoup(http.get(URL).text, "lxml")
table = soup.find("table")
if table is None:
raise RuntimeError("No table found on the page")
rows = [[date.today().isoformat()] + [c.get_text(strip=True) for c in tr.find_all("td")]
for tr in table.find_all("tr") if tr.find_all("td")]
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Listings!A:Z",
valueInputOption="USER_ENTERED", body={"values": rows}).execute()
buf = io.StringIO()
csv.writer(buf).writerows(rows)
notify.email_me(f"Listings for {date.today()}: {len(rows)} rows", buf.getvalue())
return {"rows": len(rows)}FAQ
Common questions
What kind of pages work?
Will rows be duplicated in the sheet?
What if the page layout changes?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Monitor websites from a sheet with email alerts
You get an email when a site in your sheet goes down, and every outage is logged in the same sheet.
See how it worksGet warned before an SSL certificate expires
Your sheet of domains shows how many days each certificate has left, and you get an email when any drops under 14 days.
See how it worksGet an email when a product drops below your target price
The products in your sheet are checked every 6 hours, each price is logged, and you get an email when one falls below your target.
See how it worksKeep exploring
Set up “Copy a table from a web page into a sheet every morning” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.