{"id":22976395,"url":"https://github.com/srgtuszy/gmail-invoice-fetcher","last_synced_at":"2025-07-11T14:16:52.847Z","repository":{"id":262802602,"uuid":"888401131","full_name":"srgtuszy/gmail-invoice-fetcher","owner":"srgtuszy","description":"Extract company related invoices from you gmail fast","archived":false,"fork":false,"pushed_at":"2024-11-14T11:07:11.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T23:26:27.042Z","etag":null,"topics":["gmail","googleapis","pdf","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/srgtuszy.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}},"created_at":"2024-11-14T10:36:18.000Z","updated_at":"2024-11-14T11:07:15.000Z","dependencies_parsed_at":"2024-11-14T11:32:41.918Z","dependency_job_id":"54fc1621-059d-45a5-b3c6-bdfa1f3c304e","html_url":"https://github.com/srgtuszy/gmail-invoice-fetcher","commit_stats":null,"previous_names":["srgtuszy/gmail-invoice-fetcher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgtuszy%2Fgmail-invoice-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgtuszy%2Fgmail-invoice-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgtuszy%2Fgmail-invoice-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srgtuszy%2Fgmail-invoice-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srgtuszy","download_url":"https://codeload.github.com/srgtuszy/gmail-invoice-fetcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777791,"owners_count":20832033,"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","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":["gmail","googleapis","pdf","python"],"created_at":"2024-12-15T00:50:35.868Z","updated_at":"2025-04-02T08:20:32.071Z","avatar_url":"https://github.com/srgtuszy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gmail Invoice Fetcher 📧 → 📂\n\nBorn out of the monthly panic of \"where the hell are all my invoices?\" when tax season hits. If you're like me and your inbox is a black hole of PDFs, this script is your rescue mission.\n\n## What It Does\n\n- 🔍 Searches your Gmail for emails with attachments\n- 📄 Reads the content of PDF attachments\n- ⬇️ Downloads only PDFs containing specific text (like \"invoice\", \"facture\", or your company's tax ID)\n- 📅 Filters by date range (so you can fetch just what you need for tax season)\n\n## Setup (I Promise It's Quick)\n\n1. Clone the repo: \n2. Install the stuff it needs:\n\n```bash\npip install -r requirements.txt\n```\n\n3. Get your Google credentials:\n   - Go to [Google Cloud Console](https://console.cloud.google.com)\n   - Make a new project (name it whatever)\n   - Enable Gmail API\n   - Create OAuth credentials (Desktop app)\n   - Download and rename to `credentials.json` in the project folder\n\n## How to Use It\n\n1. Set up what you're looking for:\n\nThe important bit - what text to look for in PDFs\n\n```bash\nexport SEARCH_STRINGS=\"\u003cinsert VAT number\u003e,\u003cinsert company name\u003e\"\nexport START_DATE=\"2024/01/01\"\nexport END_DATE=\"2024/12/31\"\n```\n\n2. Run it:\n\n```bash\n./fetch_invoices.py\n```\n\n3. First time? It'll open your browser for Google login. After that, it remembers you.\n\n4. Grab a coffee ☕️ while it:\n   - Digs through your emails\n   - Reads all the PDFs\n   - Saves the ones that match your search\n\n5. Check the `attachments/` folder for your invoices!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrgtuszy%2Fgmail-invoice-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrgtuszy%2Fgmail-invoice-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrgtuszy%2Fgmail-invoice-fetcher/lists"}