{"id":34997265,"url":"https://github.com/andrewscwei/rbc-statement-parser","last_synced_at":"2025-12-27T02:40:33.863Z","repository":{"id":150682858,"uuid":"140352240","full_name":"andrewscwei/rbc-statement-parser","owner":"andrewscwei","description":"Handy Python script to parse RBC Visa statements","archived":false,"fork":false,"pushed_at":"2024-10-17T17:11:16.000Z","size":126,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-20T01:41:40.909Z","etag":null,"topics":["parser","rbc","statement"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewscwei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-09T23:23:30.000Z","updated_at":"2024-10-17T17:11:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd40865c-68be-4846-8fe4-5351640dabe0","html_url":"https://github.com/andrewscwei/rbc-statement-parser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/andrewscwei/rbc-statement-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewscwei%2Frbc-statement-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewscwei%2Frbc-statement-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewscwei%2Frbc-statement-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewscwei%2Frbc-statement-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewscwei","download_url":"https://codeload.github.com/andrewscwei/rbc-statement-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewscwei%2Frbc-statement-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28069883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","rbc","statement"],"created_at":"2025-12-27T02:40:33.235Z","updated_at":"2025-12-27T02:40:33.857Z","avatar_url":"https://github.com/andrewscwei.png","language":"Python","readme":"# RBC Statement Parser\n\nPython script for parsing RBC PDF statements, compatible with both VISA and personal banking accounts (i.e. chequing, savings, etc). The output is a list of formatted transactions printed on console or output to a file.\n\n## Setup\n\nSet up environment:\n\n```sh\n$ pre-commit install\n$ pipenv install -d\n$ pipenv shell\n```\n\n## Usage\n\nDownload PDF statements from RBC and save them in a directory.\n\n```sh\n# Parse PDF(s) and output to console\n$ python main.py \u003cpdf_file_or_dir_of_pdf_files\u003e\n\n# Parse PDF(s) and output to console and out.txt\n$ python main.py \u003cpdf_file_or_dir_of_pdf_files\u003e -o out.txt\n```\n\n## Linting\n\n```sh\n$ pylint **/*.py\n```\n\n## Config\n\nCreate a `.rc` file in project root. You can also provide another file name and pass it to `--config` or `-c` option flag when executing `main.py`. See below example to understand what this config does:\n\n```js\n{\n  // String format of each transaction in the output, the following is the\n  // default.\n  \"format\": \"{date}\\t{method}\\t{code}\\t{description}\\t{category}\\t{amount}\",\n\n  // Each key is a category name to be assigned to a parsed transaction, and\n  // each array element is a regex pattern where if the transaction description\n  // matches any of the patterns, the category association will be made.\n  \"categories\": {\n    \"\u003ccategory_1_name\u003e\": [\n      \"\u003cpattern_1\u003e\",\n      \"\u003cpattern_2\u003e\",\n      \"\u003cpattern_3\u003e\",\n      ...\n    ],\n    \"\u003ccategory_2_name\u003e\": [\n      \"\u003cpattern_1\u003e\",\n      \"\u003cpattern_2\u003e\",\n      \"\u003cpattern_3\u003e\",\n      ...\n    ],\n    ...\n  },\n  // Each array element is a regex pattern where if the transaction description\n  // matches any of the patterns, it will be excluded from the output.\n  \"excludes\": [\n    \"\u003cpattern_1\u003e\",\n    \"\u003cpattern_2\u003e\",\n    \"\u003cpattern_3\u003e\",\n    ...\n  ]\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewscwei%2Frbc-statement-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewscwei%2Frbc-statement-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewscwei%2Frbc-statement-parser/lists"}