Subject
Data Collection
Getting data from sources responsibly: access, limits, snapshots and the evidence you keep.
Tutorials
- Collecting a Time Series You Can Compare: Fixed Conditions, Snapshots and Honest Gaps
A series of daily observations is only comparable if each was taken the same way. How to fix the conditions, record completeness, keep failures visible and avoid comparing across a change.
- Collecting Data Politely: Rate Limits, robots.txt and Stopping When You Are Blocked
Automated collection takes something from the source: bandwidth, attention and goodwill. Prefer authorised routes, read the rules, spend a small budget slowly, and stop when told no.
Glossary terms
- Attrition Bias
Bias that arises when units drop out of a study for reasons related to what is measured, so the units that remain no longer represent the original group.
- Circuit Breaker
A guard that stops calling a failing service after repeated errors, waits, then tests carefully before resuming.
- Data License
The terms that say what you may do with a dataset or feed: keep a copy, compute from it, publish results, pass it on. Access alone grants none of these.
- Data Snapshot
A complete record of a list or table as it stood at one moment, kept as a unit with its time, scope and completeness, so later versions can be compared against it.
- Exponential Backoff
Waiting longer after each failed attempt, usually doubling the delay and adding randomness, so retries relieve a struggling service instead of piling on.
- Headless Browser
A real web browser run without a visible window and controlled by code; it runs the page's scripts, so it can read pages assembled in the browser.
- Pagination
Splitting a long list into pages fetched one at a time. How you page decides whether items can be skipped or repeated when the list changes.
- Panel Data
Observations of the same units, such as products, firms or people, repeated over time, so change can be studied within each unit.
- Rate Limiting
Capping how many requests a client may make in a period. Servers apply it to protect themselves; responsible clients also impose it on themselves.
- robots.txt
A plain-text file at a site's root in which the owner states which paths automated clients are asked not to fetch. A convention, not a lock.
- Sampling Frame
The list or source a sample is actually drawn from. Whatever the frame leaves out cannot appear in the sample, however large the sample is.
- WARC
A standard file format that stores the raw requests and responses of web captures together with when and how each was made.
- Web Scraping
Collecting data by having a program request web pages meant for people and pull out the fields it needs. A fallback with real fragility.