How to scrape images from a websiteHave you ever tried downloading multiple images from a website and wondered if there is a better way? WebGet can automate this operation and many others. Why not sign up for a free account and give it a try?
This article will step you through the process of scraping images from any website. These steps are replicated in the video above.
To use WebGet you will need to sign up for a free account. After doing this and logging in, click on the Record New Task button to start extracting data. In this example we are going to download a series of pictures from Google images so that we can use them for a screen saver. For the Starting page, type google.com/images and click Start. After the page has loaded, click in the search bar and type your search criteria. In this example we are going to search for images of golf courses. Next, click on the magnifying glass in the Google search bar: In the popup menu select Click: The Click operation will show up in the action panel on the right. Type "Search" into the Name field and press the Click button: Now we are going to loop over all the images. The loop feature in WebGet makes it extremely powerful. Click on the first image and select Loop Over Similar Items: The items that will be included in the loop operation will be highlighted in blue and you will notice a counter in the top right hand corner of each image. If you scroll down you will notice that not all images have been selected. We can fix this by changing the Target Item. Instead of looping over the image objects we want to loop over the parent container of the image. We do this by clicking the forward arrow in the Target Item: After doing this you will see that the full list of images have been selected. This is one of many ways to change the list of items selected. You can also change the Loop Selector (available by clicking the "show selector settings" link) or Container Item values.
Then we will type Image into the Name field and click the Loop button: Now you will notice that WebGet has blanked out a large portion of the screen. This is because we are inside a loop and we can only access items within the loop container. All actions from now on will be run on all our loop items.
The next step is to download the images. We could simply click on the image now and select Download, however this would download the thumbnail images rather than the full resolution ones. So lets click on the image and select Click: Type Image in to the Name field and press Click: Now we simply download the image by clicking on it and selecting Download: Then click the Download button: That's it for the recording. Click the Finish & Save button: Enter a name and click Save & Run: The task will now run and download all the images. It will take a few minutes to complete. When finished you will see a list of images. To download them to your computer simply click the Download All Files button.