Skip to content

Commit

Permalink
Merge pull request #97 from pevers/peter/npm-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pevers authored Jul 7, 2022
2 parents 249497d + cc243e9 commit 8b2ead2
Show file tree
Hide file tree
Showing 5 changed files with 408 additions and 9,156 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 15.x, 16.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# images-scraper

This a simple way to scrape Google images using Puppeteer. The headless browser will behave as a 'normal' user and scrolls to the bottom of the page until there are enough results.
Simple NPM package to scrape Google images using Puppeteer. The headless browser will behave as a 'normal' user and scrolls to the bottom of the page until there are enough results.

**Please note that this is not an ideal approach to scrape images. It is only a demonstration to scrape images from Google.
If you don't care about the source, it is probably better to use a different search engine with an API, such as Bing.**
Expand Down Expand Up @@ -78,8 +78,7 @@ results[
query: '<Your query string>',
images: [
{
url:
'https://api.time.com/wp-content/uploads/2019/11/gettyimages-459761948.jpg?quality=85&crop=0px%2C74px%2C1024px%2C536px&resize=1200%2C628&strip',
url: 'https://api.time.com/wp-content/uploads/2019/11/gettyimages-459761948.jpg?quality=85&crop=0px%2C74px%2C1024px%2C536px&resize=1200%2C628&strip',
source: 'https://time.com/5730790/banana-panama-disease/',
title: 'What We Can Learn From the Near-Extinction of Bananas | Time',
},
Expand Down
Loading

0 comments on commit 8b2ead2

Please sign in to comment.