Title: Add X/Twitter scraper support and generic Web Scraper API access with discovery parameters · Issue #38 · brightdata/sdk-python · GitHub
Open Graph Title: Add X/Twitter scraper support and generic Web Scraper API access with discovery parameters · Issue #38 · brightdata/sdk-python
X Title: Add X/Twitter scraper support and generic Web Scraper API access with discovery parameters · Issue #38 · brightdata/sdk-python
Description: Summary The Python SDK advertises broad scraper and dataset coverage, but version 2.3.1 has no client.scrape.x or client.scrape.twitter namespace. The repository's ScrapeService exposes Amazon, LinkedIn, ChatGPT, Facebook, Instagram, Per...
Open Graph Description: Summary The Python SDK advertises broad scraper and dataset coverage, but version 2.3.1 has no client.scrape.x or client.scrape.twitter namespace. The repository's ScrapeService exposes Amazon, Lin...
X Description: Summary The Python SDK advertises broad scraper and dataset coverage, but version 2.3.1 has no client.scrape.x or client.scrape.twitter namespace. The repository's ScrapeService exposes Amazon,...
Opengraph URL: https://github.com/brightdata/sdk-python/issues/38
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add X/Twitter scraper support and generic Web Scraper API access with discovery parameters","articleBody":"## Summary\n\nThe Python SDK advertises broad scraper and dataset coverage, but version\n`2.3.1` has no `client.scrape.x` or `client.scrape.twitter` namespace.\n\nThe repository's `ScrapeService` exposes Amazon, LinkedIn, ChatGPT, Facebook,\nInstagram, Perplexity, TikTok, YouTube, DigiKey, and Reddit, but not X.\nThe generated dataset catalog also does not expose an X/Twitter module.\n\nAs a result, a working X Web Scraper API job cannot be represented through the\nSDK. I had to use `httpx` directly against `/datasets/v3/trigger`.\n\n## Use case\n\nCollect public X posts for verified profiles with:\n\n- `type=discover_new`\n- `discover_by=profile_url`\n- `start_date`\n- `end_date`\n- asynchronous polling\n- error inclusion\n- raw JSONL output\n\nThe corresponding dataset is:\n\n```text\ngd_lwxkxvnf1cynvib9co\n```\n\nEquivalent jobs submitted through direct REST and the Control Panel returned\nthe same 454 records across six profiles, confirming that the REST integration\nwas correct.\n\n## Current gap\n\nThere is no supported equivalent to:\n\n```python\nawait client.scrape.x.posts_by_profile(\n url=\"https://x.com/sama\",\n start_date=\"2022-11-30T00:00:00Z\",\n end_date=\"2026-06-08T23:59:59Z\",\n)\n```\n\nThere is also no clearly documented generic Web Scraper API method such as:\n\n```python\nawait client.web_scraper.trigger(\n dataset_id=\"gd_lwxkxvnf1cynvib9co\",\n discovery={\"type\": \"discover_new\", \"discover_by\": \"profile_url\"},\n inputs=[...],\n include_errors=True,\n)\n```\n\nThe generic dataset catalog API is not a replacement for triggering a current\nWeb Scraper API collector with discovery inputs.\n\n## Requested improvement\n\nPlease add:\n\n1. An X/Twitter scraper namespace generated from the available X scraper\n endpoints.\n2. A generic typed Web Scraper API client that accepts `dataset_id`, query\n parameters, structured inputs, and asynchronous trigger/poll/fetch.\n3. Introspection for supported discovery modes and their distinct input\n schemas.\n4. Access to snapshot ID, submitted input, status, error rows, delivered\n record count, and cost when available.\n5. JSONL/NDJSON streaming or file export for large jobs.\n6. Documentation that distinguishes:\n - ready-made scraper methods;\n - marketplace/pre-collected datasets;\n - Scraper Studio collectors; and\n - generic Web Scraper API jobs.\n\n## Related documentation concern\n\nThe documentation describes hundreds of available scrapers, while the\nhigh-level Python namespace exposes a much smaller platform set. Please clarify\nwhether the SDK intends to provide full catalog parity or only selected\nfirst-class wrappers.\n\n## Expected outcome\n\nUsers should not need to leave the SDK and write a separate REST client to\naccess a Bright Data Web Scraper API collector already available in their\naccount.","author":{"url":"https://github.com/Ashish-Soni08","@type":"Person","name":"Ashish-Soni08"},"datePublished":"2026-06-08T18:14:20Z","url":"https://github.com/brightdata/sdk-python/issues/38"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:90267c0d-42aa-eea8-2611-e6c1c43cfe5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD38:12691F:29984:38398:6B042A0F |
| html-safe-nonce | 26a4343d1d47ff8df4fe5dac88bd7e02f87c7330f0085e0a85cdbfc0838f6130 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDM4OjEyNjkxRjoyOTk4NDozODM5ODo2QjA0MkEwRiIsInZpc2l0b3JfaWQiOiI0Mzc1NDU3MzQ3MTU0NDg3ODIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 53be5b40d88cf864dedf80424e941bb5eecfef86b4f2add88cd138b81364163b |
| hovercard-subject-tag | issue:4615452949 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/brightdata/sdk-python/38/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b14082bec1e851b1affb2c41dcc69204a3fb7036d868df0913b03f008fe8ac1e/brightdata/sdk-python/issues/38 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b14082bec1e851b1affb2c41dcc69204a3fb7036d868df0913b03f008fe8ac1e/brightdata/sdk-python/issues/38 |
| og:image:alt | Summary The Python SDK advertises broad scraper and dataset coverage, but version 2.3.1 has no client.scrape.x or client.scrape.twitter namespace. The repository's ScrapeService exposes Amazon, Lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ashish-Soni08 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/brightdata/sdk-python git https://github.com/brightdata/sdk-python.git |
| octolytics-dimension-user_id | 213028976 |
| octolytics-dimension-user_login | brightdata |
| octolytics-dimension-repository_id | 1033685757 |
| octolytics-dimension-repository_nwo | brightdata/sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1033685757 |
| octolytics-dimension-repository_network_root_nwo | brightdata/sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width