ENไทย
⚡ ไม่ใช้เบราว์เซอร์ · เร็ว · พร้อมขึ้น edge

scrapling-js.

เส้นทางที่เร็วที่สุดสำหรับการ scrape — พอร์ต TypeScript ของ HTTP layer จาก Scrapling สำหรับ Bun และ Cloudflare Workers ไม่ใช้เบราว์เซอร์ ไม่มี overhead จาก headless: wreq-js TLS impersonation, stealth headers ที่สอดคล้องกัน และ selector API ที่ใช้ cheerio

0เบราว์เซอร์ที่ต้องเปิด — HTTP ล้วน ไม่มี Chromium ไม่มีร่องรอย headless
JA3/JA4ลายนิ้วมือ TLS + HTTP/2 แบบ Chrome จริงด้วย wreq-js (Rust/BoringSSL)
Edgecore ไม่มี dependency เฉพาะ Node — deploy ขึ้น Cloudflare Workers ได้

ควรใช้เมื่อไร

scrapling-js เน้นความเร็ว เมื่อเว็บสู้กลับด้วย JS challenge ให้สลับไปใช้โปรเจกต์พี่น้องที่เป็นเบราว์เซอร์ล่องหน

⚡ scrapling-js — โปรเจกต์นี้

ดึงข้อมูลผ่าน HTTP ล้วน พร้อม TLS impersonation ระดับมิลลิวินาที ไม่ใช่วินาที

เหมาะกับ
  • JSON API และ JSON ที่ฝังในหน้า (__NEXT_DATA__)
  • throughput สูงสุด / crawl ปริมาณมาก
  • Cloudflare Workers และ serverless edge

🥷 Ultrastealth — โปรเจกต์พี่น้อง

ระบบอัตโนมัติ Chrome จริงแบบ headed ที่เอาชนะการตรวจจับบอท

เหมาะกับ
  • เว็บที่ป้องกันแน่นหนา (Cloudflare, Imperva, DataDome)
  • SPA ที่ render ด้วย JS และไม่มี API ให้ใช้
  • การคลิก กรอกฟอร์ม หลายขั้นตอน

ไม่อยากเลือกเอง? skill craft-scraper จะสำรวจเว็บแล้วสร้างสคริปต์ด้วยเครื่องมือที่เหมาะสม — scrapling-js สำหรับ API, Ultrastealth สำหรับเว็บที่ป้องกัน

ฟีเจอร์

Stealth headers

สร้างชุด header แบบ Chrome/Firefox/Edge ที่สอดคล้องกัน (Client Hints, Sec-Fetch-*, ลำดับ Accept) ตรงกับลายนิ้วมือเบราว์เซอร์จริง

TLS impersonation

จับคู่ header กับ wreq-js (Rust/BoringSSL) เพื่อให้ลายนิ้วมือ JA3/JA4 + HTTP/2 ตรงกับ Chrome เวอร์ชันที่อ้าง (chrome_145–147)

Fetcher & sessions

Fetcher แบบครั้งเดียว และ FetcherSession แบบมีสถานะ เก็บ cookie, retry และหมุน proxy ได้

Selector API

CSS + XPath ที่ใช้ cheerio พร้อม pseudo-element ::text / ::attr() ใช้งานคล้าย requests

พร้อมขึ้น edge

core ไม่มี dependency เฉพาะ Node — deploy ขึ้น Cloudflare Workers ได้ทันที

เวอร์ชันตรงกัน

เวอร์ชัน Chrome ใน header ตามโปรไฟล์ TLS ของ wreq-js เพื่อให้ UA และลายนิ้วมือไม่ขัดกัน

เริ่มใช้งาน

bun add scrapling-js          # หรือ: npm i scrapling-js
import { Fetcher } from "scrapling-js";

// เปิด stealth headers ให้อัตโนมัติ
const page = await Fetcher.get("https://example.com");
const title = page.css("title::text").get();
const links = page.css("a::attr(href)").getAll();

เรียก JSON API ตรง ๆ

const r = await Fetcher.get("https://shop.example.com/api/products", {
  params: { page: "1" },
  headers: { accept: "application/json", referer: "https://shop.example.com/" },
  stealthyHeaders: true,
});
const data = JSON.parse(r.body);

ต้องการ TLS แบบ Chrome เต็มรูปแบบระดับ wire สำหรับเว็บที่ดื้อ? รัน stealth-proxy.ts ที่มากับโปรเจกต์ (Bun + wreq-js) แล้ว fetch ผ่าน localhost:3001