{"id":26171793,"url":"https://github.com/zebbern/web-shot","last_synced_at":"2025-04-14T20:21:11.282Z","repository":{"id":276531294,"uuid":"928570699","full_name":"zebbern/web-shot","owner":"zebbern","description":"📸 | Takes a screenshot of every domain/link provided and saves it in /screenshots Options to choose full page picture with highly customizable options","archived":false,"fork":false,"pushed_at":"2025-02-16T22:21:17.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T16:51:09.380Z","etag":null,"topics":["bug-bounty","custom","hacker","hacking","osint","osint-tool","osint-website","pentest","pic-web-scraper","picture","png","python","python3","screenshot","screenshot-tool","tools","website","website-screenshot","website-screenshot-capturer","websites"],"latest_commit_sha":null,"homepage":"","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/zebbern.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":"2025-02-06T21:11:02.000Z","updated_at":"2025-02-18T05:11:41.000Z","dependencies_parsed_at":"2025-02-09T23:32:21.014Z","dependency_job_id":null,"html_url":"https://github.com/zebbern/web-shot","commit_stats":null,"previous_names":["zebbern/web-shot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fweb-shot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fweb-shot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fweb-shot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fweb-shot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebbern","download_url":"https://codeload.github.com/zebbern/web-shot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952344,"owners_count":21188427,"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":["bug-bounty","custom","hacker","hacking","osint","osint-tool","osint-website","pentest","pic-web-scraper","picture","png","python","python3","screenshot","screenshot-tool","tools","website","website-screenshot","website-screenshot-capturer","websites"],"created_at":"2025-03-11T19:51:20.188Z","updated_at":"2025-04-14T20:21:11.261Z","avatar_url":"https://github.com/zebbern.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://github.com/user-attachments/assets/41601ebc-0747-4bf2-881a-2bea939e4d23\" style=\"width:25%;\"\u003e\n\n![Python](https://img.shields.io/badge/Python-3.x-blue)\n![Status](https://img.shields.io/badge/Status-Active-green)\n![License](https://img.shields.io/badge/License-MIT-brightgreen)\n\n📸 | **Takes a screenshot of every domain/link provided and saves it in /screenshots Options to choose full page picture with highly customizable options**\n\u003cdetails\u003e \n\u003csummary\u003e𝐅𝐮𝐥𝐥 𝐏𝐚𝐠𝐞 𝐒𝐜𝐫𝐞𝐞𝐧𝐬𝐡𝐨𝐭 𝐏𝐫𝐞𝐯𝐢𝐞𝐰\u003c/summary\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/623b4eaf-7a9b-450e-ac53-babf6a2b8963\"\u003e\n\u003c/details\u003e \n\u003cdetails\u003e \n\u003csummary\u003e𝐇𝐚𝐥𝐟 𝐏𝐚𝐠𝐞 𝐒𝐜𝐫𝐞𝐞𝐧𝐬𝐡𝐨𝐭 𝐏𝐫𝐞𝐯𝐢𝐞𝐰\u003c/summary\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/dcf0cb90-c420-4c0d-866f-b77dd7e2dbc2\"\u003e\n\u003c/details\u003e \n\n---\n\n[Features](#features)\n\n[Setup](#setup)\n\n[Usage](#usage)\n\n[Terminal Output For Each Domain](#terminal-output-for-each-processed-website)\n\n[Config File](#config-file)\n\n[Python 3.12+ Pip Fix](#python-312-pip-fix)\n\n\u003c/div\u003e\n\n## Features\n- **Fast \u0026 Accurate**: Captures full-page screenshots using Playwright.\n- **Highly Configurable**: Customize options via `config.yaml`:\n  - Viewport size, image format (PNG/JPEG), quality, dark mode.\n  - Network options: Block images, stylesheets, JavaScript.\n  - Proxy support and custom headers.\n  - Naming schemes: Full URL, domain-only, or custom patterns.\n- **Concurrency**: Process multiple websites concurrently for speed.\n- **Professional Terminal Output**:\n  - Color-coded status codes (2xx = Green, 3xx = Yellow, 4xx/5xx = Red).\n  - Clear, customizable output templates.\n- **Logging**: Option to log output to a file.\n\n## Setup\n**1. Clone Repository**\n```\ngit clone https://github.com/zebbern/web-shot.git\ncd web-shots\n```\n**2. Install Dependesies**\n```\npip install playwright pyyaml colorama\nplaywright install\n```\n## Usage\n1. **Prepare Your Target List**  \n   Create a file named `domains.txt` with one domain per line.\n\n2. **Customize `config.yaml`**  \n   Adjust any settings (e.g., viewport size, dark mode, naming scheme) in the `config.yaml` file.\n\n3. **Run the Script**  \n   Execute the script to start capturing screenshots:\n   ```bash\n   python webshot.py\n   ```\n\n## Terminal output for each processed website:\n```\n[1/3] [ 200 ] https://example.com https___github_com_20250310153045.png\n[2/3] [ 200 ] https://example.com https___example2_com_20250310153045.png\n[3/3] [ 200 ] http://example.com http___test3_com_20250310153045.png\n```\n\n## Config File\n`config.yaml`\n```yaml\ngeneral:\n  input_file: \"domains.txt\"         # File with one domain per line.\n  output_dir: \"screenshots\"         # Directory to save screenshots.\n  format: \"png\"                     # Image format: \"png\" or \"jpeg\".\n  clear_terminal: true              # Clear the terminal when starting.\n  verbose: false                    # Verbose output (optional).\n  log_to_file: false                # If true, log output to a file.\n  log_file: \"\"                      # Log file path (e.g., \"screenshot.log\").\n  naming_scheme: \"custom\"         # Options: \"full_url\", \"domain\", \"custom\"\n  custom_name_pattern: \"{url}\"  # Only used if naming_scheme is \"custom\"\n\nscreenshot:\n  width: 1920                     # Viewport width in pixels.\n  height: 1080                    # Viewport height in pixels.\n  scale_factor: 1                 # Device scale factor.\n  dark_mode: true                # Use dark mode for rendering.\n  user_agent: \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36\"\n  full_page: true                 # Take a full-page screenshot.\n  delay: 0                        # Delay (in seconds) after page load before screenshot.\n  quality: 80                     # JPEG quality (only used if format is \"jpeg\").\n  background_color: \"\"            # If set (e.g., \"#ffffff\"), sets the page background color.\n\nconcurrency:\n  use_concurrent: true            # Process domains concurrently.\n  max_workers: 4                  # Maximum number of concurrent browser instances.\n\ntimeouts:\n  navigation_timeout: 15000       # Navigation timeout in milliseconds.\n  wait_until: \"load\"              # When to consider navigation done (\"load\", \"domcontentloaded\", \"networkidle\").\n\nnetwork:\n  block_images: false             # Block image resources.\n  block_stylesheets: false        # Block CSS resources.\n  block_javascript: false         # Block JavaScript resources.\n\nadvanced:\n  custom_headers: {}              # Custom HTTP headers (as a mapping).\n  proxy: \"\"                       # Proxy server (e.g., \"http://127.0.0.1:8080\").\n\nterminal:\n  color_success: \"GREEN\"          # Color for 2xx status codes.\n  color_warning: \"YELLOW\"         # Color for 3xx status codes.\n  color_error: \"RED\"              # Color for 4xx/5xx status codes.\n  color_default: \"WHITE\"          # Default color.\n  output_template: \"[{current}/{total}] [{status}] {url} {filename}\"  # Template for terminal output.\n\n```\n\n\n## Python 3.12+ Pip Fix:\n### Create and Activate a Virtual Environment | Fix if `pip install` is not working or `installation` is not found.\n#### For Linux/macOS:\n```\npython3 -m venv venv \u0026\u0026 source venv/bin/activate\n```\n#### For Windows:\n```\npython -m venv venv \u0026\u0026 .\\venv\\Scripts\\activate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebbern%2Fweb-shot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebbern%2Fweb-shot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebbern%2Fweb-shot/lists"}