KAPOW

Would you like to react to this message? Create an account in a few clicks or log in to continue.
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.


2 posters

    PDF download

    avatar
    Ashraf


    Posts : 7
    Points : 2167
    Join date : 2018-06-04

    PDF download  Empty PDF download

    Post by Ashraf 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.
    Shyam Kumar
    Shyam Kumar
    Ranks


    Posts : 113
    Points : 4142
    Join date : 2013-07-05
    Location : Kerala, India

    PDF download  Empty Re: PDF download

    Post by Shyam Kumar 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
    avatar
    Ashraf


    Posts : 7
    Points : 2167
    Join date : 2018-06-04

    PDF download  Empty Re: PDF download

    Post by Ashraf 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.
    avatar
    Ashraf


    Posts : 7
    Points : 2167
    Join date : 2018-06-04

    PDF download  Empty Re: PDF download

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

    What do you think Shyam?
    Shyam Kumar
    Shyam Kumar
    Ranks


    Posts : 113
    Points : 4142
    Join date : 2013-07-05
    Location : Kerala, India

    PDF download  Empty Re: PDF download

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

    Here I am giving an example, Please see the image below,
    PDF download  Pdf110
    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
    avatar
    Ashraf


    Posts : 7
    Points : 2167
    Join date : 2018-06-04

    PDF download  Empty Re: PDF download

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

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

    Regards,
    Ashraf

      Current date/time is Sat Apr 27, 2024 3:23 pm