Web Scrapers Generator BrowserExt

getimglink

Gets a link to the image via given xpath. Acceptable inside the loadpage only.

var = getimglink(xpath[, options = dict()]);
    

Parameters:

xpath The string with the xpath expression, defining the node's address.
options Dictionary of parameters. May contain the following elements:
next If this parameter is set to 'true', getimglink will return the link element, which is next to the node requested.
html By means of this parameter html code can be passed, then the function will look for elements by the xpath in this html code but not in the loaded page.

Returned value: array of links to images.

If you need to save the image itself, use the function storefile

Example 1. . Lets do a search at ebay.com by java keyword in the Books category. We will get all the images from the page and save them.