RepositoryPython
apify

apify/apify-sdk-python

Apify SDK for Python—The official library for building Apify Actors: serverless cloud programs for web scraping, browser automation, data processing, and AI agents. Manages the Actor lifecycle, storages (datasets, key-value stores, request queues), events, proxies, and pay-per-event monetization. Built on top of the the Apify API Client.

180sao
32fork
12issue
2lượt xem

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ủ đề: data-extraction

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: apify

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: crawlee

#1 Repository của tuần

🐍 Apify SDK for Python — Xây dựng Actors serverless bằng Python

Thư viện chính thức để tạo Apify Actors: web scraping, browser automation, xử lý dữ liệu và AI agents trên nền serverless.

Apify SDK for Python (apify) là công cụ chính thức giúp bạn xây dựng Apify Actors bằng Python. Actors là các chương trình serverless có thể chạy cả loca như trên nền tảng Apify, phục vụ từ các script đơn giản đến workflow phức tạp, AI agents, hoặc dịch vụ luôn chạy với HTTP endpoint.

SDK tự động quản lý toàn bộ vòng đời Actor thông qua cú pháp async with Actor:, kèm truy cập lưu trữ (dataset, key-value store, request queue), sự kiện nền tảng, Apify Proxy, và cơ chế thu tiền theo sự kiện (pay-per-event).

✨ Điểm nổi bật

  • Vòng đời Actor tự động: Quản lý init, exit, lỗi, thông báo trạng thái, và khởi động lại qua async with Actor:.
  • Đầu vào có xác thực: Đọc và xác thực input Actor với Actor.get_input() dựa trên schema.
  • Lưu trữ đa dạng: Truy cập dataset, key-value store, request queue — cả local và trên nền tảng.
  • Xử lý sự kiện nền tảng: Phản hồi sự kiện như thông tin hệ thống, migration, và abort.
  • Quản lý proxy thông minh: Định tuyến request qua Apify Proxy với lựa chọn nhóm, quốc gia, và rotation.
  • Giao tiếp giữa các Actor: Khởi chạy, gọi, dừng, biến đổi Actor khác và gắn webhook.
  • Thu tiền theo sự kiện: Hỗ trợ mô hình pay-per-event để kiếm tiền từ Actor.
  • Truy cập API đầy đủ: Sử dụng ApifyClient được cấu hình sẵn để gọi toàn bộ Apify API.

💡 Vì sao đáng chú ý

Khác với cách viết thường bằng cách dùng thẳng Apify API client, SDK này cung cấp một lớp trừu tượng cao cấp, giúp bạn tập trung vào logic nghiệp vụ thay vì quản lý infra. Đặc biệt, cú pháp async with Actor: giúp chuẩn hóa vòng đời Actor — khởi tạo khi bắt đầu, dọn dẹp khi kết thúc — rất phù hợp với lập trình bất đồng bộ Python hiện đại.

Phù hợp cho scraper, workflow tự động hóa, AI agents, và bất kỳ dự án Python nào cần chạy serverless trên nền tảng Apify.


#ApifySDK #Python #WebScraping #Serverless #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
apify/crawlee

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

26.6k
Dec 2, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryTypeScript
morluto/rea

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

487.0k
Dec 2, 2026
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
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryPython
D4Vinci/Scrapling

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

107.6k
Dec 1, 2026
RepositoryPython
unclecode/crawl4ai

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

88.2k
Nov 30, 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
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026