Ordered Gallery Image Export
Pricing
$1.00 / 1,000 delivered image occurrences
Ordered Gallery Image Export
Export ordered image occurrences from a selected HTML gallery. Keep repeated images, picture/srcset variants and raw source evidence grouped by occurrence. Label lazy-load attributes as hints and report partial results. No JavaScript or image downloads.
Pricing
$1.00 / 1,000 delivered image occurrences
Rating
0.0
(0)
Developer
Roman V
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 months ago
Last modified
Categories
Features
Share
Export the image occurrences declared inside one gallery container on each page. Each dataset row keeps its HTML position, fallback URL, ordered picture/source declarations, responsive candidates and raw opening tags. Repeated URLs stay at their separate positions. JSON export preserves the nested groups; CSV may encode nested values as JSON text.
Input
Provide pages, an array of one to ten objects with url and selector. Each selector must match exactly one container. Supported CSS includes tag, ID, class, attribute equality, descendants and children, at most 200 characters/eight whitespace-separated components. Selector lists and pseudo selectors are refused. maxOccurrences defaults to 20 and must be between 1 and 1,000. Omitted input and {} use Python.org's .site-headline as a small, useful example and persist the effective input. Replace the example with pages you are authorized to inspect.
{"pages":[{"url":"https://www.python.org/","selector":".site-headline"}],"maxOccurrences":20}
Output and ordering
position is one-based inside the selected gallery. pageIndex is zero-based input order. occurrenceId is deterministic from requested page, input position, selector and occurrence position. Repeating a URL on another page or input position does not merge records. IDs are positional identifiers, not permanent image identities.
image holds the img's declarations. sources holds direct preceding source siblings when the img is directly inside picture, in source order. Each declaration includes rawStartTag, ordered rawAttributes (entity-decoded values, including duplicates), first-value attributes, candidates, separately labeled hints, and issues. Candidates retain raw URL, resolved URL, original descriptor, attribute, media and type. alt: null means absent; alt: "" means explicitly empty. Missing or invalid fallback has fallbackUrl: null.
Source order is the parser's HTML order, not visual CSS order. This HTTP-only tool does not execute JavaScript, pick currentSrc, inspect CSS backgrounds, test image URLs, download image binaries, infer original resolution or claim that responsive alternatives are identical images. It excludes inert template/noscript descendants. Malformed HTML follows Python's HTML parser, not a browser's HTML5 tree repair. Raw opening tags preserve the evidence for inspection. Invalid or unsupported descriptors and URL schemes are labeled; they do not invalidate adjacent candidates. Width/density candidates are preserved, without browser selection. Attribute-level mixed or duplicate descriptors appear in issues. Nonstandard data-src/data-srcset are hints and never override src.
The first base href resolves relative declarations. Invalid base values are reported. Image references may be relative, extensionless, contain commas or Unicode. Only declared HTTP(S) references are resolved; their hosts are never contacted. Page-fetch URLs themselves must be ASCII HTTP(S), standard port 80/443, without credentials, fragments or secret-looking query fields. No authentication, proxies, custom headers, crawling or cross-site API calls are offered. Redirects are checked independently; HTTPS cannot downgrade to HTTP.
Use only pages and image declarations you are authorized to inspect and reuse. Check the site's terms and robots policy before submitting a page. This bounded exact-URL tool does not fetch robots.txt or interpret its rules and does not treat public reachability as permission. No access-control bypass is attempted.
The default dataset contains only selected image occurrence rows. OUTPUT in the default key-value store contains page outcomes, counters and the delivery receipt, without an image inventory. USEFUL means complete useful extraction; EMPTY means no img in the selected HTML; PARTIAL means a page or cap prevented complete extraction. Missing/ambiguous selectors are explicit UNOBSERVED page outcomes. FAILED/INVALID run outcomes exit nonzero. An empty or unobserved selector does not prove that a site has no dynamic images. Healthy page rows survive other page failures. An occurrence exceeding a bound is refused whole and its position appears in diagnostics.
Limits and resource use
Limits: ten exact pages, concurrency one, three redirects per page, forty HTTP request attempts and forty page sockets; one checked DNS destination/socket per request after validating all up to sixteen DNS answers. There are no connection or append retries. Responses allow 2 MiB encoded body and 2 MiB decoded body, 12 MiB each per collection; 50,000 opening tags and 128 explicit nesting levels; 100 occurrences/page; 1,000/run; twenty candidates including hints/occurrence; 5,000 candidates/run; 16 KiB serialized/row; 3 MiB for the single serialized SDK append. Serialization limits include indentation, escaping, commas and brackets.
Each HTTP request has fifteen seconds, collection ninety seconds and runtime work after SDK startup 120 seconds. Protocol input is separately bounded at 2 MiB plus 64 KiB per response and 12 MiB plus forty 64 KiB header allowances per collection. Counters distinguish protocol bytes observed from encoded body bytes read and decoded bytes produced. Detection may observe one body/decompression sentinel byte above a bound or one protocol callback above a bound; these are counted and rejected, not hidden or described as exact network billing. TLS/OS buffering and packet overhead are not measured. Encoded and decoded bytes from failed responses are counted when consumed. No further request starts after an aggregate limit.
The default and minimum memory are 256 MiB. Dependencies are pinned with hashes.
Pricing and event caps
With pay-per-event pricing enabled at $0.001 per confirmed delivered occurrence, variants are included in that occurrence's price. At this rate, the default twenty-occurrence limit has an event ceiling of $0.02, and the maximum 1,000 has an event ceiling of $1. Check the current pricing shown in Apify Console before starting a run. Free/unpriced validation records zero charged events; inconsistent declared pay-per-event context fails before fetching.
A supported positive maxTotalChargeUsd reduces selection to the number of whole occurrence events it can fund. For example, $0.0015 allows one occurrence at a $0.001 event price, not one and a half occurrences. The hosted API may ignore a literal zero or reject a cap below one event. Do not use maxTotalChargeUsd=0 as a no-spend guarantee.
These are event ceilings, not total infrastructure-cost estimates. Compute, data transfer, storage and API operations still incur platform costs under the billing terms shown in Console; an event cap does not bound all of those costs. Confirmed empty output has no occurrence events. If delivery or charging is ambiguous, inspect the recorded delivery status instead of assuming that the counts or costs are zero.
Delivery and recovery
Delivery uses one SDK append below its pinned chunk threshold. A persisted intent prevents replay after ambiguous delivery. The dataset API acknowledgement is recorded separately from the SDK charge receipt. If a later SDK or receipt error occurs, DELIVERED_CHARGE_UNKNOWN preserves confirmed delivered and per-page counts while chargedOccurrences stays null. Ambiguous transport remains UNKNOWN for both counts. A separate digest-verified DELIVERY_RECEIPT stores only diagnostics and counts, so a journal or OUTPUT failure can preserve facts for restart. A completed restart returns its verified saved receipt without another source request or append. An incomplete or malformed restart fails closed and requires operator reconciliation. Known zero requires a complete digest-verified pre-append snapshot with appendAttempted false; an incomplete or corrupt snapshot never proves zero. A separately verified delivery receipt can preserve delivered counts when the journal is unusable. If all durable writes fail or the process stops before saving an acknowledgement, restart reports unknown; it cannot reconstruct unavailable facts. No automatic retry or manual charge call exists.