RepositoryGo
PU

PuerkitoBio/goquery

A little like that j-thing, only in Go.

15.0kstars
956forks
3issues
3views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: selector-strings

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: jquery

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: goquery

#1 Repository Của Tuần

📌 goquery — jQuery nhưng chạy trên Go

Một thư viện nhỏ gọn mang phong cách jQuery đến với ngôn ngữ Go.

goquery mang lại cú pháp và tính năng giống như [jQuery][], chạy trên [ngôn ngữ Go][go]. Dựa trên gói net/html của Go và thư viện CSS Selector [cascadia][], goquery cho phép phân tích và thao tác HTML một cách trực quan. Tuy nhiên, do net/html trả về các nút (node) thay vì một cây DOM đầy đủ, các hàm thao tác có trạng thái của jQuery như height(), css(), detach() đã bị loại bỏ.

✨ Điểm nổi bật

  • Cú pháp giống jQuery: Dùng tên hàm giống hệt jQuery khi có thể, với giao diện có thể gọi chuỗi (chainable).
  • Dựa trên net/html: Sử dụng parser HTML của Go, hỗ trợ mạnh mẽ và hiệu suất cao.
  • CSS Selector với cascadia: Hỗ trợ chuẩn CSS Selector thông qua thư viện cascadia.
  • Yêu cầu UTF-8: Người dùng cần đảm bảo HTML đầu vào được mã hóa UTF-8.
  • API ổn định: API đã ổn định và không thay đổi gãy.
  • Hỗ trợ Go modules: Tích hợp sẵn với hệ thống quản lý gói của Go.
  • Hiệu năng tốt: Được tối ưu hóa cho cả tài liệu lớn và nhỏ.

💡 Vì sao đáng chú ý

goquery không chỉ là một công cụ phân tích HTML đơn thường — nó mang trải nghiệm lập trình jQuery sang Go, giúp các nhà phát triển dễ dàng chuyển đổi từ JavaScript sang Go mà không cần học một cú pháp mới. Phù hợp cho các dự án cần crawl web, xử lý HTML, hoặc tích hợp vào các công cụ backend.


#GoLang #HTMLParsing #jQuery #CSSSelector #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Oct 31, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

379.9k
Sep 15, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026
RepositoryJavaScript
react/react

The library for web and native user interfaces.

253.0k
Nov 30, 2026