SDK for building TimeTiles scrapers — CSV output helper
Project description
timetiles
Python SDK for building TimeTiles scrapers — CSV output helper.
Currently provides timetiles.scraper for building web scrapers. The timetiles namespace is extensible for future sub-packages.
Install
pip install timetiles
Usage
from timetiles.scraper import output
# Fetch your data
events = fetch_events()
# Write rows
for event in events:
output.write_row({
"title": event["name"],
"date": event["date"],
"location": event["venue"],
})
# Save as CSV
output.save()
print(f"Wrote {output.row_count} events")
API
output (singleton)
output.write_row(row)— Append a dict as a CSV row (headers auto-detected from first row)output.write_rows(rows)— Append multiple rowsoutput.save(filename=None)— Write CSV to disk (default:data.csv)output.row_count— Number of rows writtenoutput.to_csv_string()— Get CSV as string (for debugging)
OutputWriter (class)
Create custom instances:
from timetiles.scraper import OutputWriter
writer = OutputWriter(output_dir="./output")
writer.write_row({"title": "Event", "date": "2026-01-01"})
writer.save("events.csv")
Environment
TIMESCRAPE_OUTPUT_DIR— Output directory (default:/output, set automatically in TimeTiles containers)
License
AGPL-3.0-or-later
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
timetiles-0.1.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timetiles-0.1.0.tar.gz.
File metadata
- Download URL: timetiles-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f936b1d862ebcc627317b8b149f1146de2483a0a5556ed8a5671bf6ef5b8b2d4
|
|
| MD5 |
125342d3ca3951afb05c42e654edcbd8
|
|
| BLAKE2b-256 |
2535262a56545ab6f8fa82eaf3e5ae5e2ae7c7b1396a9a764508c16fb0dd9404
|
File details
Details for the file timetiles-0.1.0-py3-none-any.whl.
File metadata
- Download URL: timetiles-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6995b80a31939be5e038b9c76cffe0da26632ffb9e46c1c9fb589aff4ed1943
|
|
| MD5 |
018a5ba6cdb4633de34ce3fa478593ac
|
|
| BLAKE2b-256 |
abfdc2f171fa43042cbaafab9091445d9f689deaf40a30742e8db307fa67316e
|