ParseHub is able to integrate with your Amazon S3 account and directly extract images and files from a run, and automatically upload them to your Amazon S3.
Integrate your ParseHub and Amazon S3 accounts
1) From the home page, click on Integrations in the sidebar:
3) Click on Amazon S3 to choose the integration.
4) Click on the Enable button to activate the integration.
5) Enter your Amazon S3 credentials when prompted to log in. You'll be notified if the integration is successful.
Download Images to Amazon S3
1) Press the + button and add a select, or relative select command
2) Select an image on the page
3) Hold shift and press the + button that appears when you hover over the new selection. Add an extract command.
4) Choose "Screenshot to S3" from the Extract dropdown menu.
Download a File
To download a file from a run into your Amazon S3, do as above with any element you want to download, such as PDF links, swf files or otherwise.
Select the download link on the page, press the + button, add an extract command. From the Extract dropdown menu, choose the "Download to S3" option.
Please note this function is applicable on the websites which allow you to download files through a download link on the web page. If you are interested in the images which are embedded on the web page, you should use the function which was mentioned in the first section:
$e.screenshotToS3()
Extract Screenshots to Amazon S3
Similarly to the way you can use ParseHub to capture images, you can take screenshots from a run into your S3, use a Select command to select any area you would like to screenshot.
Pro Tip!
You can "zoom" in and out on elements (select a larger or smaller container):
- Use a Select command
- Hover over the element you would like to zoom in or out on
- Hold down Ctrl (Windows) / Command (Mac)
- Each time you tap 1, it will zoom out to larger elements and each time you tap 2, it will zoom into smaller elements
- Keep Ctrl/Command held down until you find the right one and then click on the element to select it with your Select command.
|
Click on the drop-down menu and choose the "Screenshot to S3" option:Click on the + sign next to that selection and choose an Extract command.
Additional parameters: folder name and max time
The functions above can also take two additional parameters to specify the name of the folder you would like to download or save the screenshot to and the maximum amount of time (maxtime) you would like the function to run
- $e.downloadToS3(folder,maxtime)
- $e.screenshotToS3(folder,maxtime)
folder parameter: you can either enter a String with the text of the folder name between quotation marks (e.g. $e.downloadToS3("My Folder Name") ) or you can enter the name of a previous Select or Extract command (e.g. $e.downloadToS3(mySelection) )
maxtime parameter: this sets the maximum amount of time ParseHub will wait in milliseconds.
name parameter: by default, the file will extract with the run token number.