Python
Install the Python SDK, scrape a page, look up a brand, and set timeouts and retries.
The context.dev package requires Python 3.9 or later. SDKs covers the API key and the defaults all SDKs share.
Install
Create a virtual environment, then install the SDK:
Scrape a page
Save this as scrape.py and run python scrape.py. It prints the page as Markdown, starting with # Example Domain.
scrape.py
Look up a brand
Replace the request and the print line with this lookup. It prints the company name.