API Integration Basics
Airtop provides SDKs for TypeScript and Python, making it easy for developers to integrate automation features into their applications:
- Installation: Python users can install it via "pip install airtop".
- Getting the API key: Settings page of the Control Panel to view the
Examples of practical applications
Below are code examples for two practical scenarios:
1. Basic session creation
from airtop import Airtop
client = Airtop(api_key="你的API密钥")
session = client.create_session()
session.command("打开 https://www.google.com")
2. Data extraction
data = session.extract("提取页面上的所有标题")
print(data)
These API features are ideal for developers who need to batch process web data or build automated systems, greatly reducing the difficulty of developing crawlers and automated tests.
This answer comes from the articleAirtop: A Browser Automation Tool Using Natural Language ControlsThe































