{"id":28946694,"url":"https://github.com/dmitriz/gmail-invoice-pdf-collector","last_synced_at":"2026-02-02T13:10:43.286Z","repository":{"id":292685221,"uuid":"981609353","full_name":"dmitriz/gmail-invoice-pdf-collector","owner":"dmitriz","description":"Minimal system to retrieve invoice PDFs from Gmail, filter them via LLM, and merge into a single file.","archived":false,"fork":false,"pushed_at":"2025-05-13T04:33:38.000Z","size":151,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T08:50:05.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmitriz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-11T13:54:53.000Z","updated_at":"2025-05-12T14:05:27.000Z","dependencies_parsed_at":"2025-05-11T15:44:36.519Z","dependency_job_id":null,"html_url":"https://github.com/dmitriz/gmail-invoice-pdf-collector","commit_stats":null,"previous_names":["dmitriz/gmail-invoice-pdf-collector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmitriz/gmail-invoice-pdf-collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgmail-invoice-pdf-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgmail-invoice-pdf-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgmail-invoice-pdf-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgmail-invoice-pdf-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitriz","download_url":"https://codeload.github.com/dmitriz/gmail-invoice-pdf-collector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgmail-invoice-pdf-collector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T12:48:30.580Z","status":"ssl_error","status_checked_at":"2026-02-02T12:46:38.384Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-06-23T08:42:10.364Z","updated_at":"2026-02-02T13:10:43.280Z","avatar_url":"https://github.com/dmitriz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gmail Invoice PDF Collector\n\nThis tool retrieves emails from a Gmail account, identifies invoices and receipts using a lightweight LLM, downloads all PDF attachments, and merges them into one consolidated PDF file.\n\n## Features\n- Fetch all emails from a Gmail account\n- Use LLM to classify relevant messages (invoice/receipt)\n- Download PDF attachments from filtered emails\n- Merge all valid PDFs into a single file\n- Supports mock mode for testing without real Gmail access\n\n## Setup\n\n### 1. Google Cloud Credentials\n- Create a project at https://console.cloud.google.com/\n- Enable the Gmail API\n- Create OAuth 2.0 credentials.\n- Download `credentials.json` and ensure it is excluded from version control (e.g., add it to `.gitignore`) or stored securely using a secrets management tool.\n\n### 2. Install Dependencies\nModes\nMock mode: Uses sample emails and PDFs (default)\n\nReal mode: Requires live Gmail and LLM API access\n\nOutputs\noutput/merged.pdf: Final merged PDF\n\noutput/pdfs/: Individual downloaded PDFs\n\noutput/errors.log: Any processing issues\n\n## Specification\n\nFor detailed information about the system, refer to the [SPEC-1: Gmail Invoice PDF Collector](SPEC-1-gmail-invoice-pdf-collector.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Fgmail-invoice-pdf-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitriz%2Fgmail-invoice-pdf-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Fgmail-invoice-pdf-collector/lists"}