{"id":23345962,"url":"https://github.com/rakashash/webscrape-google-image-down","last_synced_at":"2025-04-07T17:18:22.618Z","repository":{"id":249977259,"uuid":"572366144","full_name":"RaKAsHASH/webscrape-google-image-down","owner":"RaKAsHASH","description":"Download google images using python","archived":false,"fork":false,"pushed_at":"2024-12-07T06:19:13.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T19:27:42.026Z","etag":null,"topics":["beautifulsoup","beautifulsoup4","pip","python","python3","requests"],"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/RaKAsHASH.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":"2022-11-30T05:35:08.000Z","updated_at":"2024-12-12T15:25:03.000Z","dependencies_parsed_at":"2024-12-21T07:11:56.687Z","dependency_job_id":"f7bd0b86-f720-47e5-b335-d98e1ef55956","html_url":"https://github.com/RaKAsHASH/webscrape-google-image-down","commit_stats":null,"previous_names":["rakashash/webscrape-google-image-down"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaKAsHASH%2Fwebscrape-google-image-down","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaKAsHASH%2Fwebscrape-google-image-down/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaKAsHASH%2Fwebscrape-google-image-down/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaKAsHASH%2Fwebscrape-google-image-down/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaKAsHASH","download_url":"https://codeload.github.com/RaKAsHASH/webscrape-google-image-down/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694878,"owners_count":20980733,"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":["beautifulsoup","beautifulsoup4","pip","python","python3","requests"],"created_at":"2024-12-21T07:11:48.754Z","updated_at":"2025-04-07T17:18:22.594Z","avatar_url":"https://github.com/RaKAsHASH.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Image Scraper\n\n## Overview\nThis Python script allows users to search and download images directly from Google Images by providing a search query and specifying the number of images to download. It uses the `requests` library to fetch the data and `BeautifulSoup` for HTML parsing.\n\n## Features\n- **Custom Search**: Specify the type of images to download.\n- **Download Control**: Set the number of images to fetch and save.\n- **Folder Management**: Automatically creates a folder to store the downloaded images.\n\n## Requirements\n- Python 3.x\n- The following Python libraries:\n  - `requests`\n  - `bs4` (BeautifulSoup)\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/RaKAsHASH/google-image-scraper.git\n   cd google-image-scraper\n2. Install the required libraries:\n   ```bash\n   pip install requests beautifulsoup4\n\n## Usage\n1. Run the script:\n   ```bash\n   python scraper.py\n2. Enter the type of images you want to download (e.g., \"cats\" or \"landscapes\").\n3. Specify the number of images to download.\n\n## How It Works\n1. The script sends a search request to Google Images with the user-specified query.\n2. It parses the HTML response to extract image links using BeautifulSoup.\n3. Downloads the specified number of images and saves them in the Images_1 folder.\n\n## Code Explanation\n\n### Main Components\n- **User Agent Setup**: Mimics a browser to avoid being blocked by Google.\n- **Image Download Logic**: Extracts image links from the HTML and downloads them using requests.\n### Key Functions\n`main()`: Initializes the folder and starts the download process. \u003cbr/\u003e\n`download_images()`: Handles the search query, fetches image links, and downloads them.\n\n## Example\n- **Input**:\n  ```bash\n  Enter images type you want to download: puppies\n  Enter the number of images you want: 5\n- **Output**:\n  ```bash\n  Found 5 images\n  Start downloading...\n  Download Completed!\n\n## Notes\n\n- **User Agent**: Update the User-Agent string if it becomes outdated or blocked.\n- **Google Restrictions**: Google might block repeated or excessive requests. Use responsibly.\n- **Image Quality**: The quality of downloaded images depends on Google's provided links.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakashash%2Fwebscrape-google-image-down","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakashash%2Fwebscrape-google-image-down","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakashash%2Fwebscrape-google-image-down/lists"}