KAPOW

Welcome to the Kapow forum. Here you can get help, use your skills to help others and enjoy hanging out in the company of other Kapow Robot Developers.


PDF download

Share

Ashraf

Posts : 4
Points : 170
Join date : 2018-06-04

PDF download

Post by Ashraf on Fri Sep 28, 2018 10:43 am

Hi,
I built a bot that access a web site, generates a search then it should click on an icon to download a file, all the steps are working fine except the download part.

I appreciate any thoughts.

Thanks.
avatar
Shyam Kumar
Ranks

Posts : 108
Points : 2144
Join date : 2013-07-05
Location : Kerala, India

Re: PDF download

Post by Shyam Kumar on Fri Sep 28, 2018 10:58 am

What types of files you are trying to download?

Here you can extract that file in a variable, and use the 'Write File' action step to download the content.

Thank you

Regards,

Shyam kumar

Ashraf

Posts : 4
Points : 170
Join date : 2018-06-04

Re: PDF download

Post by Ashraf on Fri Sep 28, 2018 11:01 am

The file type is pdf, I think the issue is when clicking the download icon it open another tab.

Ashraf

Posts : 4
Points : 170
Join date : 2018-06-04

Re: PDF download

Post by Ashraf on Fri Sep 28, 2018 11:08 am

What do you think Shyam?
avatar
Shyam Kumar
Ranks

Posts : 108
Points : 2144
Join date : 2013-07-05
Location : Kerala, India

Re: PDF download

Post by Shyam Kumar on Fri Sep 28, 2018 11:36 am

Here I am giving an example, Please see the image below,

Here I am trying to show you the exact actions, It may help you.
Load your URL, then loop each files, click on the PDF file what you want to extract from the download tab, It may open in another window, so set that window as current window, then add one binary variable for PDF extraction. Then convert the PDF files using extract binary content action step and extract form PDF action step. Now your PDF file in the binary variable,.. So you can do anything based on your requirement. if you need to insert in database or write the files in your machine etc.. Here I am trying to use write the file in my machine. Now the PDF files are downloaded successfully.

Hope you understood.
check and any clarification please let you know.

Thank you
Regards,
Shyam kumar

Ashraf

Posts : 4
Points : 170
Join date : 2018-06-04

Re: PDF download

Post by Ashraf on Sat Sep 29, 2018 3:07 am

Hi Shyam,
Maybe when you get a chance we can look at this together.

Regards,
Ashraf

Sponsored content

Re: PDF download

Post by Sponsored content


    Current date/time is Thu Nov 15, 2018 12:05 pm