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 Scraper Module #85

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

nikki-infinte
Copy link

Summary of changes:
This pull request introduces an Image Scraper module using Puppeteer package.
Details:
- used Puppeteer to launch browser instance.
- navigate to specified URLS and extracts images URLS from google search.
- Ensure email is valid if not then skipped else download
- Download images
New Dependencies:

-node js
	npm init 
-Puppeteer
	npm i puppeteer
	
	A node js package to controlling chrome browser

Usage:

  • The module can be invoked via the command line or integrated into other Node.js applications.
  • Example usage:
    const scraper = require('./puppeteer-image-scraper');
    const urls = ['https://example.com', 'https://anotherexample.com'];
    scraper.scrapeImages(urls, { headless: true, timeout: 30000 });

Testing:
-The module was tested on my local laptop and it correctly extracts images .

Screenshot
Screenshot (250)
Screenshot (251)
Screenshot (252)
Screenshot (253)

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