Skip to content

T3rm1/scalable-capital-document-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Scalable Capital Document Downloader

This PowerShell script downloads all your documents from your Scalable Capital account.

Description

The script automates the process of downloading every document available in your Scalable Capital mailbox. It first fetches a complete list of all documents and then downloads them one by one into a local downloads folder. If a file already exists, it will be skipped to avoid re-downloading.

Requirements

  • Windows PowerShell
  • An active Scalable Capital account

How to Use

  1. Run the script: Open a PowerShell terminal, navigate to the directory containing the script, and run it:

    .\Download-Documents.ps1
  2. Enter your credentials: The script will prompt you to enter your userId and appSession token. See the section below on how to obtain these values.

  3. Download: The script will create a downloads folder in the same directory and start downloading all your documents. Existing files will be skipped.

How to get userId and appSession

To get the required userId and appSession values, you need to log in to your Scalable Capital account in a web browser and use the developer tools to inspect the network traffic.

  1. Log in to your Scalable Capital account in your browser (e.g., Chrome, Firefox, Edge).

  2. Open Developer Tools: Press F12 or Ctrl+Shift+I (or Cmd+Option+I on Mac) to open the developer tools.

  3. Go to the Network tab: Click on the "Network" tab within the developer tools.

  4. Find a GraphQL request: While the Network tab is open, refresh the page or navigate around your account. Look for requests made to a URL ending in /graphql. You can use the filter bar in the network tab to search for graphql.

  5. Inspect the request: Click on one of these graphql requests to open its details.

    • To find the userId: Look at the "Payload" or "Request" tab. You will find the userId within the request body.
    • To find the appSession: Look at the "Headers" tab. Under "Request Headers", find the Cookie header. The appSession value is part of the cookie string.

    Copy both values and paste them into the terminal when the script prompts you.

About

PowerShell script for downloading Scalable Capital documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published