Repository navigation
v0.2.0
Behaviour changes. A response whose own
totalorhas_moresays
ads exist but whosedatais empty is now a failure, not "no ads": a run
holding nothing exits 5 (was 4), and a run with other rows exits 6.
Output files follow the umask (were always 0600) and an existing file
keeps its mode. CSV cells that would run as a spreadsheet formula get a
leading'. Negative--retries,--retry-delay,--delayand
--proxy-block-retriesare refused as usage errors (exit 2).
Fixed
- An empty
databeside a non-zerototalread as "no ads". The
classifier returnedno_adsfor{"total": 5000, "has_more": true, "data": []}, so a run reported the query as matching nothing (exit 4)
while the response stated 5,000 matches. It is now a parse error in the
classifier, and each engine treats a zero-row page under such an envelope
the same way. A genuinetotal: 0is still exit 4. - Output files were 0600 whatever the umask. The atomic writer kept
the temporary file's owner-only mode. A new file now gets
0666 & ~umaskand an existing one keeps its own mode, including the
.meta.jsonsidecar. - CSV formula injection. Advertiser names, titles and creative URLs
are advertiser-written text. String cells starting with=,+,-,
@, tab, CR or LF are prefixed with'in the CSV (after list joining);
numbers and JSON are untouched. The sidecar recordscsv_cells_escaped,
and a caller's own sidecar fields win a name collision. - Negative counts and delays.
--retries -1was silently read as 0
and--retry-delay -1crashed the first retry with exit 1. All three
engines (and the refusal-only Scraper API client) now reject negative
values with an argparse error naming the flag.--retrieshas help text
saying it counts extra attempts;--retries 0still fetches once. - Wording. The README said 25 columns per ad (there are 26), and
comments described sibling routes as if they were this repo's.
Changed
- Public files no longer cite an external instruction file or its section
numbers; each comment states its rule directly. A suite check keeps it
that way.tiktok_payload.pychanged only in comments, and its recorded
digest was updated. - The canary keeps the exact payloads it received (
--dump-html) in its
artifact, so a red run can be diagnosed.