{"id":22765692,"url":"https://github.com/developer-sumit/web-groper-python","last_synced_at":"2026-02-19T00:03:24.496Z","repository":{"id":261756633,"uuid":"885219233","full_name":"developer-sumit/web-groper-python","owner":"developer-sumit","description":"WebGroper is a Python class designed to recursively scrape and download media files (images, PDFs, etc.) from a specified website directory, such as the /wp-content/uploads directory of a WordPress site.","archived":false,"fork":false,"pushed_at":"2024-11-08T08:28:00.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T19:45:49.650Z","etag":null,"topics":["package","python-package","web-scr","web-scraping","website-scraper","wordpress-scraper","wordpress-website-scraper"],"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/developer-sumit.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-08T07:22:42.000Z","updated_at":"2025-09-29T13:21:56.000Z","dependencies_parsed_at":"2024-11-08T09:28:44.199Z","dependency_job_id":"c379591b-e1e9-44e9-822a-579c52c2216c","html_url":"https://github.com/developer-sumit/web-groper-python","commit_stats":null,"previous_names":["developer-sumit/web-groper-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developer-sumit/web-groper-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-sumit%2Fweb-groper-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-sumit%2Fweb-groper-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-sumit%2Fweb-groper-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-sumit%2Fweb-groper-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developer-sumit","download_url":"https://codeload.github.com/developer-sumit/web-groper-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developer-sumit%2Fweb-groper-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29599338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T22:25:43.180Z","status":"ssl_error","status_checked_at":"2026-02-18T22:25:42.766Z","response_time":162,"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":["package","python-package","web-scr","web-scraping","website-scraper","wordpress-scraper","wordpress-website-scraper"],"created_at":"2024-12-11T12:14:01.325Z","updated_at":"2026-02-19T00:03:24.482Z","avatar_url":"https://github.com/developer-sumit.png","language":"Python","readme":"# WebGroper\n\nWebGroper is a Python class designed to recursively scrape and download media files (images, PDFs, etc.) from a specified website directory, such as the `/wp-content/uploads` directory of a WordPress site.\n\n## Features\n\n- Recursively traverses URLs to find and download media files.\n- Ignores resized images generated by WordPress.\n- Saves downloaded files in a structured directory.\n\n## Requirements\n\n- Python 3.x\n- `requests` library\n- `beautifulsoup4` library\n\n## Installation\n\n1. Clone the repository or download the script.\n2. Install the required libraries using pip:\n\n    ```sh\n    pip install requests beautifulsoup4\n    ```\n\n## Usage\n\n1. Create an instance of the `WebGroper` class with the desired parameters.\n2. Call the `traverse_url_recursive` method with the starting URL.\n\nExample:\n\n```python\nfrom webgroper import WebGroper\n\n# Initialize the WebGroper class\nweb_groper = WebGroper(\n    output_directory=\"groped_data\",\n    time_between_download_requests=1,\n    ignore_sizes_regex=r\"-\\d+x\\d+\\.[a-z]+\"\n)\n\n# Start scraping from the specified URL\nweb_groper.traverse_url_recursive(\"https://example-wordpress-site.com/wp-content/uploads/\")","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-sumit%2Fweb-groper-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-sumit%2Fweb-groper-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-sumit%2Fweb-groper-python/lists"}