0

I am looking to write/find C# code that downloads all the images found at a 'Google Image Search' URL. The images would be saved to a folder on my computer.

I've researched online this functionality and haven't found anything yet. Any suggestions on how to do this or where to begin?

The following is a 'Google Image Search' URL I'll be using: http://images.google.com/images?q=srk&start=0&ndsp=20

HappyCoding
  • 591
  • 14
  • 36
SRIRAM RAMACHANDRAN
  • 247
  • 3
  • 6
  • 22

1 Answers1

0

Here's a PHP approach

$text = file_get_contents('http://images.google.com/images?q=srk&start=0&ndsp=20'); $dcmnt = new DOMDocument(); $dcmnt->loadHTML( $text ); foreach($dcmnt->getElementsByTagName('a') as $node){

you can add any html tag where the 'a' is and manipulate the page source . use file_get_contents() to download the image files.

lasan
  • 201
  • 1
  • 13