{"id":27116541,"url":"https://github.com/vthuong99/web-scan-to-pdf","last_synced_at":"2026-05-04T05:32:48.550Z","repository":{"id":286541832,"uuid":"961705820","full_name":"VThuong99/Web-scan-to-pdf","owner":"VThuong99","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-07T03:52:12.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T04:30:20.589Z","etag":null,"topics":["automation","pdf","python","selenium"],"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/VThuong99.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":"2025-04-07T03:14:29.000Z","updated_at":"2025-04-07T03:54:38.000Z","dependencies_parsed_at":"2025-04-07T07:45:54.125Z","dependency_job_id":null,"html_url":"https://github.com/VThuong99/Web-scan-to-pdf","commit_stats":null,"previous_names":["vthuong99/web-scan-to-pdf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VThuong99%2FWeb-scan-to-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VThuong99%2FWeb-scan-to-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VThuong99%2FWeb-scan-to-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VThuong99%2FWeb-scan-to-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VThuong99","download_url":"https://codeload.github.com/VThuong99/Web-scan-to-pdf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248122342,"owners_count":21051265,"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":["automation","pdf","python","selenium"],"created_at":"2025-04-07T05:29:03.063Z","updated_at":"2026-05-04T05:32:48.510Z","avatar_url":"https://github.com/VThuong99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Screenshot to PDF\n\nThis project automates capturing screenshots from a webpage by scrolling dynamically and combining them into a PDF file. It supports large documents (e.g., thousands of pages) with error handling and configurable options.\n\n## Features\n- Access a specified URL and scroll dynamically based on page height.\n- Capture screenshots for a specified number of pages.\n- Optional login support for authenticated pages.\n- Rename screenshot files to a 3-digit format (e.g., `page_001.png`).\n- Combine screenshots into a PDF file.\n\n## Installation\n\nInstall required libraries:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n1. Run the main script with command-line arguments:\n    ```bash\n    python src/main.py --url \u003cURL\u003e --pages \u003cNUMBER\u003e [--email \u003cEMAIL\u003e] [--password \u003cPASSWORD\u003e] [--output \u003cPDF_NAME\u003e]\n    ```\n- `--url`: URL of the webpage (required).\n- `--pages`: Number of pages to capture (required).\n- `--email`: Email for login (optional).\n- `--password`: Password for login (optional).\n- `--output`: Output PDF file name (default: `output_screenshots.pdf`).\n\n2. Run the rename script to standardize filenames:\n    ```bash\n    python scr/rename_files.py\n    ```\n## Example \nCapture 446 pages from a Box URL without login:\n    ```bash\n    python src/main.py --url https://app.box.com/s/7mnv4zzizj3yizwnhuiaa4q7jycn9orr --pages 446\n    ```\n### Sample Results\n![PDF Preview](images/output_pdf_preview.png)\n\n# Contributing\nContributions are welcome! Please:\n- Open an issue to report bugs or suggest features.\n- Submit a pull request with your improvements.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvthuong99%2Fweb-scan-to-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvthuong99%2Fweb-scan-to-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvthuong99%2Fweb-scan-to-pdf/lists"}