Sbb Scraper
Spider read sbb.ch in 1.0 s without a browser and returned 468 lines of clean markdown.
Releases. Zur Navigation Zum Inhalt Kontakt Menü* The property `type` of `sbb-train-wagon` has been renamed to`wagon-type`* The default inline padding of `sbb-train-formation` was changed from 0 to `var(--sbb-spacing-fixed-1x)`* The CSS variable `--sbb-train-formation-padding-inline` was renamed to `--sbb-train-formation-scroll-padding`* **journey-header:** The `size` property of the `sbb-journey-header` has been removed. Use the `visualLevel` property to set the font-size by using the following mapping from `size` to `visualLevel`: `s` -> 6, `m` -> 5, `l` > 4.* **button, action-group:** The default size of the buttons has changed from `l` to `m` in standard theme. The `sbb-action-group` doesn't have a default `buttonSize` and `linkSize` applied anymore but delegates the default size choice to slotted button and links.* Various TypeScript types have been removed. `SbbTitleLevel` was renamed to `SbbHeadingLevel` and moved to core module.* **autocomplete, select:** Deleted `core/overlay` mixins* **sbb-chip-label:** chip-label Sass mixins were removed. As the chip-label styles were moved to the host, the chip-label can behave slightly different in text flow.* removed the automatic ID assignment from the following components: `sbb-tab`, `sbb-menu`, `sbb-dialog`, `sbb-popover`, `sbb-tooltip`, `sbb-stepper`, `sbb-datepicker`, `sbb-overlay`, `sbb-navigation`, `sbb-navigation-section`.* **option:** `sbb-option` does not automatically assign an ID anymore* **core:** deleted `setAriaOverlayTriggerAttributes` and `removeAriaOverlayTriggerAttributes` methods.* **link:** the `size` property has been removed from `sbb-link`,`sbb-link-button` and `sbb-link-static`, since it has effects only on block-links.* **navigation:** The `size` property of the `sbb-navigation-button` and `sbb-navigation-link` has been removed.* Some global CSS refactorings have been executed.* The Sass text mixins ending with `-bold` have been removed. Just use The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on sbb.ch.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://sbb.ch");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { Spider } from "@spider-cloud/spider-client";
const spider = new Spider({ apiKey: process.env.SPIDER_API_KEY! });
const result = await spider.scrapeUrl("https://www.sbb.ch", {
return_format: "markdown",
});
console.log(result); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What sbb.ch costs to scrape.
The capture above cost $0.00022 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More International scrapers.
Mercado Libre Scraper
Extract product listings, seller ratings, pricing in local currencies, and shipping data from Mercado Libre.
Rakuten Scraper
Extract product listings, store ratings, cashback offers, and pricing data from Rakuten Japan marketplace.
Flipkart Scraper
Extract product listings, seller data, pricing in INR, and delivery estimates from Flipkart India store.
Start scraping sbb.ch.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.