Headers and authentication
Configure credentials in the calling application and pass request headers through a session.
Source reference · Match your SDK version. Availability and known issues
In this guide
Bearer headers
import os
from crawlingo import Session
session = Session().headers({
"Authorization": "Bearer " + os.environ["DATA_SOURCE_TOKEN"]
})python6 lines · copy-ready
Keep credentials scoped to the source
A session’s headers are shared across its requests. Use a separate session and input list for each credential scope. Keep secrets out of committed job files and examples. Redirect and destination restrictions must be considered by the application.
Token refresh
Obtain or refresh tokens in your application. The examples here use the public SDK header methods; they do not imply an automatic OAuth refresh workflow.