Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Scrapper from a website #3244

Closed
wants to merge 4 commits into from

Conversation

WannaCry016
Copy link

Problem

-Extracting images from websites can be challenging without automated tools. Users may need to download multiple images from a URL, which would be time-consuming if done manually.

Solution

-Developed a Python script using Selenium and BeautifulSoup to automate the extraction and downloading of images from a specified website URL. This script locates images by their tags, retrieves their links, and saves them locally.

Changes proposed in this Pull Request :

  • Added scrap_img.py, which utilizes Selenium to load a webpage and BeautifulSoup to parse the HTML, identifying image URLs.
  • Implemented download_img() function to download and save images in formats like .jpg, .jpeg, .png, and .gif.
  • Set up a customizable directory structure to save downloaded images in the output folder.
  • Integrated user inputs for ChromeDriver path and URL to allow flexible scraping across various websites.

@WannaCry016 WannaCry016 closed this Nov 1, 2024
@WannaCry016 WannaCry016 deleted the project2 branch November 1, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant