René's URL Explorer Experiment


Title: List input pairs results with URLs by position, so a result carries another input's data; every result is success=True · Issue #60 · brightdata/sdk-python · GitHub

Open Graph Title: List input pairs results with URLs by position, so a result carries another input's data; every result is success=True · Issue #60 · brightdata/sdk-python

X Title: List input pairs results with URLs by position, so a result carries another input's data; every result is success=True · Issue #60 · brightdata/sdk-python

Description: Summary When a scraper method is given a list of URLs, the SDK pairs the returned rows with the input URLs by position. The API does not return rows in input order, so each ScrapeResult can carry one input's url and a different input's d...

Open Graph Description: Summary When a scraper method is given a list of URLs, the SDK pairs the returned rows with the input URLs by position. The API does not return rows in input order, so each ScrapeResult can carry o...

X Description: Summary When a scraper method is given a list of URLs, the SDK pairs the returned rows with the input URLs by position. The API does not return rows in input order, so each ScrapeResult can carry o...

Opengraph URL: https://github.com/brightdata/sdk-python/issues/60

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"List input pairs results with URLs by position, so a result carries another input's data; every result is success=True","articleBody":"### Summary\n\nWhen a scraper method is given a list of URLs, the SDK pairs the returned rows with the input URLs **by position**. The API does not return rows in input order, so each `ScrapeResult` can carry one input's `url` and a different input's `data`. Every result is also marked `success=True`, including error rows.\n\nOn LinkedIn this attaches one person's profile to a different identity. The dataset marks those fields as personal data (`pii: true`), so this is a data-integrity problem, not only a wrong-label one.\n\nThe same code is in six scrapers: amazon (2 places), facebook (2), instagram, linkedin, pinterest, tiktok.\n\n### Environment\n\n- `brightdata-sdk` 2.5.2 (latest on PyPI)\n- Python 3.12.13, macOS\n- Verified 18 Sep 2026\n\n### Reproduction\n\n```python\nfrom brightdata import SyncBrightDataClient\n\nurls = [\n    \"https://www.linkedin.com/in/reidhoffman/\",\n    \"https://www.linkedin.com/in/zz-not-a-real-profile-zz/\",\n    \"https://www.linkedin.com/in/satyanadella/\",\n]\nwith SyncBrightDataClient(auto_create_zones=False) as c:\n    results = c.scrape.linkedin.profiles(urls, timeout=420)\n\nfor r in results:\n    d = r.data if isinstance(r.data, dict) else {}\n    print(r.url, \"| success\", r.success, \"| name\", d.get(\"name\"), \"| error\", d.get(\"error\"))\n```\n\n```\nhttps://www.linkedin.com/in/reidhoffman/              | success True | name None         | error The profile is hidden or private.\nhttps://www.linkedin.com/in/zz-not-a-real-profile-zz/ | success True | name Reid Hoffman | error None\nhttps://www.linkedin.com/in/satyanadella/             | success True | name Satya Nadella | error None\n```\n\n- The result labelled `reidhoffman` holds the dead profile's error, so a caller concludes Reid Hoffman's profile is hidden or private. It is not.\n- The result labelled `zz-not-a-real-profile-zz`, an account that does not exist, holds Reid Hoffman's real profile.\n- All three are `success=True`.\n\n### The API returns a different order each run\n\nFetching the raw snapshot for the same three inputs, in a second job:\n\n```\nraw[0] reidhoffman\nraw[1] satyanadella\nraw[2] zz-not-a-real-profile-zz   (error row)\n```\n\nThe first job returned the error row first. The order is not stable, so there is no input ordering a caller could choose to avoid this.\n\n### Why it happens\n\n`scrapers/linkedin/scraper.py`, `_scrape_urls`:\n\n```python\nresults = []\nfor url_item, data_item in zip(url_list, result.data):\n    results.append(\n        ScrapeResult(\n            success=True,\n            data=data_item,\n            url=url_item,\n            ...\n```\n\n`zip` pairs the n-th input with the n-th row. `success=True` is a literal.\n\n### Every row already says which input it belongs to\n\n```\nsuccess row: input_url = \"https://www.linkedin.com/in/reidhoffman/\"\nerror row:   input     = {\"url\": \"https://www.linkedin.com/in/zz-not-a-real-profile-zz/\"}\nerror row keys: [\"error\", \"error_code\", \"input\", \"timestamp\"]\n```\n\nSo correct pairing needs no guesswork: match each row on `input_url`, falling back to `input.url`.\n\n### Other shapes of the same bug\n\n- If the API returns fewer rows than inputs, `zip` stops at the shorter list and those inputs get no result at all, with nothing to say one is missing.\n- When the job fails or times out, `result.data` is not a list, so the method returns one `ScrapeResult` instead of a list. A caller iterating the list-input return gets a single object.\n\n### Affected\n\n`grep -c \"zip(url_list, result.data)\"` across `scrapers/*/scraper.py`:\n\n| scraper | occurrences |\n| --- | --- |\n| amazon | 2 |\n| facebook | 2 |\n| instagram | 1 |\n| linkedin | 1 |\n| pinterest | 1 |\n| tiktok | 1 |\n\n### Expected\n\n1. Pair each row with its input by `input_url` / `input.url`, not by position.\n2. Set `success` from the row: `False` when the row has an `error` key.\n3. Return one result per input even when a row is missing, with `success=False`, rather than dropping it.\n4. Return a list for list input on every path, including failure and timeout.\n\n### Workaround\n\nIgnore `ScrapeResult.url` on list input. Flatten every `result.data` and match rows to inputs on `input_url` or `input.url` yourself.\n","author":{"url":"https://github.com/anil-bd","@type":"Person","name":"anil-bd"},"datePublished":"2026-09-18T13:42:48Z","url":"https://github.com/brightdata/sdk-python/issues/60"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2deaf2ec-c4be-c974-a72a-4f48a4ac5f11
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD312:1C9CD4:128A2:1883C:6B0429BF
html-safe-nonce76edc8ecec25d582a378ef5f2a0af465245666dfef7c8cf73c88ea08f1a53705
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzEyOjFDOUNENDoxMjhBMjoxODgzQzo2QjA0MjlCRiIsInZpc2l0b3JfaWQiOiI5ODYxNzYyMjE1NDMxNDc5NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb28f4059f409c4a01181ffb25a80752875859b138974954f034216f67ddc3670
hovercard-subject-tagissue:5500274992
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/brightdata/sdk-python/60/issue_layout
twitter:imagehttps://opengraph.githubassets.com/09fa0317ba052aa69ccc9319a47e23fff21dae1a5e22e71331b3ef775ff32e92/brightdata/sdk-python/issues/60
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/09fa0317ba052aa69ccc9319a47e23fff21dae1a5e22e71331b3ef775ff32e92/brightdata/sdk-python/issues/60
og:image:altSummary When a scraper method is given a list of URLs, the SDK pairs the returned rows with the input URLs by position. The API does not return rows in input order, so each ScrapeResult can carry o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameanil-bd
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
go-importgithub.com/brightdata/sdk-python git https://github.com/brightdata/sdk-python.git
octolytics-dimension-user_id213028976
octolytics-dimension-user_loginbrightdata
octolytics-dimension-repository_id1033685757
octolytics-dimension-repository_nwobrightdata/sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1033685757
octolytics-dimension-repository_network_root_nwobrightdata/sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/brightdata/sdk-python/issues/60#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrightdata%2Fsdk-python%2Fissues%2F60
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrightdata%2Fsdk-python%2Fissues%2F60
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=brightdata%2Fsdk-python
Reloadhttps://github.com/brightdata/sdk-python/issues/60
Reloadhttps://github.com/brightdata/sdk-python/issues/60
Reloadhttps://github.com/brightdata/sdk-python/issues/60
brightdatahttps://github.com/brightdata
sdk-pythonhttps://github.com/brightdata/sdk-python
Codehttps://github.com/brightdata/sdk-python
Issues12 (12)https://github.com/brightdata/sdk-python/issues
Pull requests6 (6)https://github.com/brightdata/sdk-python/pulls
Actionshttps://github.com/brightdata/sdk-python/actions
Projectshttps://github.com/brightdata/sdk-python/projects
Security and qualityhttps://github.com/brightdata/sdk-python/security
Insightshttps://github.com/brightdata/sdk-python/insights
https://github.com/brightdata/sdk-python
New issuehttps://github.com/login?return_to=https://github.com/brightdata/sdk-python/issues/60
New issuehttps://github.com/login?return_to=https://github.com/brightdata/sdk-python/issues/60
List input pairs results with URLs by position, so a result carries another input's data; every result is success=Truehttps://github.com/brightdata/sdk-python/issues/60#top
https://github.com/anil-bd
anil-bdhttps://github.com/anil-bd
on Sep 18, 2026https://github.com/brightdata/sdk-python/issues/60#issue-5500274992
Sign up for freehttps://github.com/signup?return_to=https://github.com/brightdata/sdk-python/issues/60
Sign in to commenthttps://github.com/login?return_to=https://github.com/brightdata/sdk-python/issues/60
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.