T101 - Automate image downloading process using screen capture technology |
Task Description |
This sample will download images from Google Image using ‘Screen Capture’ command that can capture screenshots of an active open window as a part of your task.
T101.atmn
|
| Solution |
 |
Extract image URL from website and save it in a CSV file
- Go to Tools->Web Recorder or click on ‘Web Recorder’ link on main GUI.
- Open www.images.google.com website.
- Type Image name in search box in the webpage 'Google Images'
- Click on 'Search Images' button in the webpage 'Google Images'
- Click on ‘Extract Data’ button in Web Recorder window and select ‘Pattern Base’ option.
- Follow Extract multiple data wizard. In step 1 of wizard, capture the Image, click on ‘Capture’ button to capture another similar image to match the pattern and select the action ‘Get URL’.
- In case data is spanning in multiple pages then in Step 2 you can capture the link to navigate the next page.
- In Step 3 specify the CSV file name and path where you need to save the image URL. Click on Finish button to end the wizard.
|

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4 |
 |
Open captured URL by reading the CSV file
- Insert ‘Read From CSV file’ command to read the file that contains image URL we captured above.
- Insert “Loop for each row in a CSV/Text file’ command to repeat the image downloading process for each URL in CSV file.
- Inside this loop block, insert ‘Navigate URL’ command to open the image URL using system variable, $Fielddata column$
|
 |
Capture the image and save it on your hard drive
- After you open the image URL, insert Screen Capture command to save the image. Select ‘Capture Window’ option so you can save active image window at desired location.
|
 |
How to run the task:
- In case you do not have Automation Anywhere installed, please download and install it from, http://www.automationanywhere.com/download/freeTrial.htm
- Save T101.atmn under location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks
- Launch Automation Anywhere and from Task List select T101.atmn and click on RUN button to run the task.
|
|
| |
| When you run this task, it will download specific images from a website to specific location on your hard disk. |
|
 |
| I LOVE Automation Anywhere! It's allowed us to stop paying a part-timer to scrape different websites for the data we need, which was a tedious job to begin with. I was also very impressed with the support I received. I had a problem that AA support team was very responsive and helpful with, time and again, until we figured it out. Great product, great support, great company! Thanks |
- Joe Brillante
PostBankruptcy Report
|
| Read Customer Testimonies >> |
|