Weibo Post Detail Scraper
Pricing
$0.10 / actor start
Weibo Post Detail Scraper
Fetch one Weibo post's full detail plus up to 10 pages of comments (~150 total) with cursor-based pagination. Pass numeric postId (+ optional mid) from upstream feeds.
Weibo Post Detail Scraper
Pricing
$0.10 / actor start
Fetch one Weibo post's full detail plus up to 10 pages of comments (~150 total) with cursor-based pagination. Pass numeric postId (+ optional mid) from upstream feeds.
DHWZavzQYxlKNk1g2 requested 10 comment pages, the free plan allows 3,
and it fetched exactly 3 without writing anything about it to the dataset or to
SUMMARY — a capped run and a complete run produced the same shape of output.
Both now carry appliedLimits: { maxPages, requestedPages, capped }, and a
capped run appends a notice row.apify-actor-start, collected once
when the run begins, so a run returning 300 rows costs the same as one returning 3.
The section now describes that, and stops promising something the invoice contradicts.notice row and to SUMMARY.appliedLimits.capped, and a capped run still ends
SUCCEEDED - exceeding a plan quota is never a failed run.An upstream failure no longer reports a failed run. fetchPostDetail and
the comment pagination sat outside any try/catch, so an upstream that failed
after its own retries ended the run with exit code 91. All 6 FAILED runs this
Actor had in the 30 days to 2026-11-06 were this path. The run now pushes a
type: 'notice' row with the upstream's own message and finishes
successfully.
A rejected input no longer reports a failed run. A postId that is not a
string of digits used to throw from validateInput. Nothing is requested
upstream before that point; it is now a notice row with a reason.
LIMITED_PERMISSIONS where the run token can neither list nor create one. The
failure was swallowed and the counter fell back to a run-scoped store, so it
read 0 every time. Fleet-wide evidence, measured 2026-11-06: 48 of 58
usage-gate-* stores held a record and every record was dated 2026-10-03..05
with our own APIFY_USER_ID — local test runs only, not one real user. The
gate is now the platform's pay-per-event charge. src/gate_store.js is
deleted.LIMITED_PERMISSIONS — how Apify's automated QA and every API-triggered run
starts an Actor — opening the store is refused with HTTP 403
(KeyValueStoreCollectionClient.getOrCreate, path /v2/key-value-stores).
That call sat in a || fallback chain and was never inside a try/catch of
ours, so the throw ended the run with exit code 91 and a reported FAILED run
with zero items. Every store open now goes through a wrapper that returns a
no-op store instead of throwing, so the free-run counter and the run SUMMARY
degrade and the actual work proceeds./v2/key-value-stores; it used a fixed limit=50, which silently
stopped containing gate stores once the account passed 50 of them — and the
account creates a new default store on every run, so that list grows on its
own. The lookup now pages (100 per page, up to 20 pages).UpstreamClient; env vars TIKHUB_API_KEY / TIKHUB_BASE_URL → UPSTREAM_API_KEY / UPSTREAM_BASE_URL; file src/tikhub_client.js → src/upstream_client.js. Per our internal SOP §100 (no upstream name in user-facing surfaces), existing 0.1.2 runs keep working until the next push.test/integration.js was the hot-search template (called fetchTrendTop + intervalSeconds); replaced with two post-detail-specific tests covering fetchPostDetail (single post object) and fetchPostComments (first page). 7/7 unit + 2/2 integration tests PASS.keyValueStore.setValue('SUMMARY', {...}) requires JSON.stringify + contentType: 'application/json'.JSON.stringify(current + 1) write / parse-on-read.apify call SUCCEEDED, 1 detail + ~30 first-page comments pushed.vgIzEKOSpFKlEDVo5).vgIzEKOSpFKlEDVo5.data.data (post object directly).data.data.data[] + max_id + max_id_type. §41 pagination via maxId + maxIdType dual-field (no cookie, no cursor-only).maxPages hard-capped at 10 ≈ 150 comments total.