Beanscrape Logo

Beanscrape

CLI for bank scraping

Beanscrape is a command line tool which automates a web browser to scrape transactions from your bank's website. It runs C# scripts (.csx files) that handle the specific steps for each site.

Quick Start

iwr https://www.surebeans.net/beanscrape/releases/win-x64/beanscrape.exe -OutFile beanscrape.exe
curl -LO https://www.surebeans.net/beanscrape/releases/osx-arm64/beanscrape && chmod +x beanscrape
curl -LO https://www.surebeans.net/beanscrape/releases/linux-x64/beanscrape && chmod +x beanscrape

FAQ

Who is behind Beanscrape?

Beanscrape is made by EnduraByte LLC led by Doug Slater.

How Does it Work?

Each website is different. You can install a publicly available script if there is one for your bank.

beanscrape script search mybank
beanscrape script install mybank

Otherwise, you first teach beanscrape how interact with your bank's website:

beanscrape teach mybank

This will open a browser with a panel which guides you to sign in to your website, navigate to transactions, and optionally export a file. The teach command generates a markdown file ./prompts/mybank.md file. You give this file to an LLM like Claude or ChatGPT, and the LLM generates a mybank.csx file.

Optionally, you can save your credentials for auto login. The credential never leaves your computer except to sign in to your bank.

beanscrape credential add mybank # Saves to secure OS storage

Then, you run the script:

beanscrape run mybank --scripts ./scripts/ # or another folder

Beanscrape opens a browser to the login page at your bank. If you ran credential add, will fill in your username and password and log in automatically, or it will wait for you to log in manually. Then, it navigates to the transactions/statement page and...

  1. finds the export/download button and parses the downloaded file (CSV, OFX, JSON)
  2. or reads the web page's HTML, a process known as scraping.

Beanscrape returns your transactions in JSON by default or CSV if you specify --format csv.

We encourage you to contribute your generated scripts back to the community. You can submit them by email or to the forum.

Is it safe?

Financial data deserves sensitive treatment. Beanscrape is designed around progressive trust principles. You can use it according to your level of trust.

What does Beanscrape upload?

Why did you make this?

Can you make this open source?

What does Beanscrape download?

Where does beanscrape save what it downloaded?

Where does beanscrape teach save prompts?

./prompts/{bankid}.md in the current working directory. You can change it with the --output flag

Where does beanscrape run save data?

./output/{timestamp}_{bankid}.json in the current working directory. You can change it with the --outdir flag

Where are my credentials saved to?

Why are the binaries > 100MB?

We bundle a browser, the .NET runtime, and a C# compiler inside the binary so that all you need is just a single file.

Manual Download

Standalone executable. No installation required.

Windows x64Apple Silicon

Other options

Windows ARM64Apple IntelLinux x64Linux ARM64