Periscope Source
The Periscope source extracts dashboards, charts, SQL views, and user data from Periscope Data (now part of Sisense).
Installation
Section titled “Installation”The Periscope source ships with the core package; no extra is needed.
pip install bizonQuick Start
Section titled “Quick Start”name: periscope-pipeline
source: name: periscope stream: charts workspace_name: my-workspace client_site_id: 12345 database_id: 67890 x_csrf_token: your-csrf-token authentication: type: cookies params: cookies: cf_bm: your-cloudflare-cookie periscope_session: your-session-cookie
destination: name: bigquery config: project_id: my-project dataset_id: analytics gcs_buffer_bucket: my-bucketAvailable Streams
Section titled “Available Streams”| Stream | Description | Incremental |
|---|---|---|
charts | Charts filtered by database_id | No |
dashboards | All dashboards | No |
dashboards_metadata | Dashboard metadata via search | No |
databases | Connected databases | No |
users | Workspace users/owners | No |
views | SQL views | No |
Configuration
Section titled “Configuration”Source Configuration
Section titled “Source Configuration”| Field | Type | Required | Description |
|---|---|---|---|
workspace_name | string | Yes | Periscope workspace name |
client_site_id | int | Yes | Client site ID |
database_id | int | Yes | Filter charts by this database |
x_csrf_token | string | Yes | CSRF token for requests |
Authentication
Section titled “Authentication”Periscope uses cookie-based authentication. You’ll need to extract cookies from your browser session:
source: name: periscope stream: charts workspace_name: my-workspace client_site_id: 12345 database_id: 67890 x_csrf_token: your-csrf-token authentication: type: cookies params: cookies: cf_bm: your-cloudflare-bm-cookie periscope_session: your-periscope-session-cookieHow to Get Credentials
Section titled “How to Get Credentials”- Open Periscope in your browser and log in
- Open Developer Tools (F12 or Cmd+Option+I)
- Go to the Network tab
- Navigate to any page in Periscope
- Click on any XHR request to
app.periscopedata.com - Find the following in the request:
- Cookies:
__cf_bmandperiscope_sessionfrom the Cookie header - X-CSRF-Token: From the request headers
- client_site_id: From the request URL parameters
- Cookies:
Example Configurations
Section titled “Example Configurations”Charts to BigQuery
Section titled “Charts to BigQuery”name: periscope-charts
source: name: periscope stream: charts workspace_name: analytics-team client_site_id: 12345 database_id: 67890 x_csrf_token: ${env://PERISCOPE_CSRF} authentication: type: cookies params: cookies: cf_bm: ${env://PERISCOPE_CF_BM} periscope_session: ${env://PERISCOPE_SESSION}
destination: name: bigquery config: project_id: my-project dataset_id: periscope gcs_buffer_bucket: my-staging-bucketDashboards Metadata
Section titled “Dashboards Metadata”name: periscope-dashboards
source: name: periscope stream: dashboards_metadata workspace_name: analytics-team client_site_id: 12345 database_id: 67890 x_csrf_token: ${env://PERISCOPE_CSRF} authentication: type: cookies params: cookies: cf_bm: ${env://PERISCOPE_CF_BM} periscope_session: ${env://PERISCOPE_SESSION}
destination: name: bigquery config: project_id: my-project dataset_id: periscope gcs_buffer_bucket: my-staging-bucketData Structure
Section titled “Data Structure”Chart Records
Section titled “Chart Records”| Field | Description |
|---|---|
id | Chart ID |
database_id | Connected database ID |
content_id | Content ID (for textboxes) |
raw_text | Extracted text (for textbox widgets) |
Dashboard Records
Section titled “Dashboard Records”| Field | Description |
|---|---|
id | Dashboard ID |
name | Dashboard name |
Session Management
Section titled “Session Management”Periscope sessions expire. To maintain access:
- Refresh cookies regularly: Session cookies typically expire after a few hours
- Use environment variables: Store cookies in environment variables for easy updates
- Automate refresh: Consider using browser automation to refresh cookies
Next Steps
Section titled “Next Steps”- Sources Overview - Learn about source connectors
- Authentication - Configure auth methods
- Transforms - Transform extracted data