Skip to main content

Rogers API (Unofficial)

Unofficial Python wrapper for Rogers Bank credit card data retrieval.

Disclaimer

This project is not affiliated with, maintained by, or endorsed by Rogers Bank. Automating access to banking portals may violate terms of service. Use at your own risk and only for your own account.

MVP Goals

  • HTTP-first authentication and session handling.
  • Account summary retrieval.
  • Credit card transaction retrieval.
  • Normalized transaction output for future Lunch Money integration.

Installation

pip install -r requirements.txt
pip install -e .

Quick Start

python run.py login
python run.py discover-endpoints --capture-seconds 120
python run.py balance
python run.py transactions --start-date 2026-01-01

Notes

  • Credentials are requested interactively.
  • Session state is stored locally and reused.
  • Browser fallback is used only when direct HTTP auth cannot complete.

Endpoint Discovery (Authenticated)

Use this command after login to capture real authenticated network calls and lock the endpoint mapping used by the client:

python run.py discover-endpoints --capture-seconds 120

If the sign-in button is disabled (for example due to captcha/challenge), run manual mode:

python run.py discover-endpoints --manual-login --capture-seconds 120

To prefer email verification and keep the browser hidden when possible:

python run.py discover-endpoints --headless --prefer-email --capture-seconds 120

Artifacts are written under your local session folder (~/.rogers-api/ by default):

  • endpoint_map.json: selected summary/transactions endpoint + HTTP method
  • endpoint-discovery-YYYYMMDD-HHMMSS.json: raw captured XHR/fetch event metadata

Use installed Google Chrome

By default, browser operations use Playwright's bundled Chromium. To try the Google Chrome installed on your machine during manual login:

ROGERS_BROWSER_CHANNEL=chrome python run.py discover-endpoints --manual-login --capture-seconds 120

The same environment variable works for callers such as lunchrogers. From the Luncheon repository root, after its Python environment has this version of rogers-api, run:

ROGERS_BROWSER_CHANNEL=chrome ./lunchrogers/lunchrogers-sync.sh

It applies to discovery, browser authentication fallback, and browser API requests. Library callers can also use RogersClient(browser_channel="chrome"); an explicit argument takes precedence over the environment. Unset the variable or set it to chromium to restore the default. Other values are rejected.

Chrome must already be installed. Launch errors are reported without silently falling back to Chromium. This selects the browser executable, while still using an isolated context; it does not reuse your regular Chrome profile or cookies. It is a diagnostic option for login failures such as ERR_401_RECAPTCHA_LOW_SCORE, not a guarantee that Rogers will accept the login. Complete any challenges manually.

Publishing releases

Releases use PyPI Trusted Publishing through .github/workflows/publish.yml. Configure the existing PyPI project's GitHub publisher with owner diogobas, repository rogers-api, workflow filename publish.yml, and environment pypi. No PyPI API token or GitHub secret is needed.

For each release, update both setup.py and rogers_api/__init__.py, merge after CI passes, and publish a GitHub release with a matching tag (for example, v0.1.4). The workflow builds and checks the wheel and sdist, verifies the packaged versions match the tag, then publishes to PyPI. Pull requests validate the build without publishing. Prereleases are not uploaded to PyPI.

Dependency updates

After .github/dependabot.yml is merged into the default branch, Dependabot checks Python dependencies every Monday at 07:00 in America/Toronto. Version updates wait seven days after release. PRs are assigned to diogobas, with at most three version-update PRs open at once. Merging remains manual.

playwright is kept in its own PR. Other minor/patch updates are grouped; other major updates get separate PRs for changelog review. This repository uses pip manifests without a lockfile, so versioning-strategy: increase proposes higher minimum requirements even when the previous range allows the release. Notifications follow GitHub account preferences. After merging an update, refresh local environments and review any matching package metadata before publishing a release. Updating the Git submodule pointer in Luncheon is a separate change.

Tests and CI

python -m pip install -r requirements.txt -e .
python -m pip check
python -m pytest -q
python run.py --help

CI runs on pull requests and pushes to master with Python 3.10 and 3.14. It installs the requirements and package metadata from the revision being checked, verifies dependency compatibility, runs pytest, and checks CLI help. GitHub Actions dependencies are also monitored by Dependabot.

The suite uses temporary session/endpoint-map files and blocks unstubbed HTTP and browser operations. Transport tests exercise requests preparation, responses, errors, and retries with only the network send stubbed. No real credentials, saved sessions, or installed browsers are required. Live login, MFA, and browser behavior are outside this suite.

Requirements use minimum bounds without a lockfile. A higher minimum can therefore resolve to the same installed release as the previous requirement.

Metadata

Release files for rogers-api 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rogers-api 0.1.4
File Size Uploaded Provenance Actions
rogers_api-0.1.4.tar.gz 21.6 kB With provenance Details for rogers_api-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rogers-api 0.1.4
File Interpreter ABI Platform Actions
rogers_api-0.1.4-py3-none-any.whl Python 3 none any Details for rogers_api-0.1.4-py3-none-any.whl

Total release size: 39.0 kB

Release files / rogers_api-0.1.4.tar.gz

Download URL rogers_api-0.1.4.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3a90a03aaa21426c7f7ee54a54438bdffad3319a981a2788257637578444aa66
BLAKE2b-256 checksum
How to use checksums
ef7b220eb415dd9624cfda63cbf236170abadd0485e863bf1cef42ba2451d658
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / rogers_api-0.1.4-py3-none-any.whl

Download URL rogers_api-0.1.4-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc6e738e9a2f3d6befe5848989850ef4b49768c8ce7c86f3d291298d680d7f7e
BLAKE2b-256 checksum
How to use checksums
c16479461325375fe145ff73cdb2b4c0b058bb4372efc848121afaa744178200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for rogers-api 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rogers_api-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page