I want to display a webpage like: https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Tool-Mastery-Action/ta-p/35500.
So suppose I have the URL as a field:
https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Tool-Mastery-Action/ta-p/35500 |
What steps do I follow to output the static page?
Thanks in advance,
Mark
Solved! Go to Solution.
Ok, this is a bit fiddly but it works.
I'll need to send you a .zip as I'm not allowed to attached it here. Can I send it via IM?
First of all, install node.js
Second, unzip the folder I'll send. You only need to change the following:
Step 1: Open Take_Screenshot.bat and change folder path
Step 2: In the Alteryx workflow , change the run command tool parameters to point at correct location
Step 3: In the Alteryx workflow, amend "ReadOutput.json" filepath
No, you just need to feed your URLs in (you can make this dynamic, obviously, and you should then be able to produce static image outputs:
Let me know how you get on.
https://www.dropbox.com/sh/nbuwsrwj4tlvebf/AABoqzbJFMLSDXlx5csoOE-Fa?dl=0
There's a dropbox link to my solution.
Give that a whirl.
@PaulN I was going to say same thing.
Looks like node.js uses phantomScript = __dirname + '/webshot.phantom.js' so probably no better than using solution provided.
not sure if easy to set screen size in node solution but i think you can set size output in phantom.
Thank you @mceleavey & @SophiaF for finding solutions to the challenge.
Yes, @mceleavey I would like to download the daily stock price after closing and have the webpage image to output as pdf. Can this be done?
Thanks so much for this @SophiaF I tweaked your workflow to fit my problem. This is going to save my unit countless man/woman hours going forward.
Hi all. I thanked Sophia for her solution above which allowed me to download the documents from 1611 hyperlinks in 30 minutes - a task that in the past I've done manually (with the help of others) and it was a slow, tedious torture.
Today, we got an error - and I want to mention it in case anyone else stumbles upon this thread later on. We have a spreadsheet with hyperlinks - and we want to download each of them to their own PDF. However, when we first obtain this Excel spreadsheet, they're really just hyperlink text (strings) because we haven't yet activated them to be true hyperlinks. If we forget to activate them, Alteryx will download one, but then give us an error of "the process cannot access the file because it is being used by another process. (32)". We just deleted the one entry in our folder, and then created all the hyperlinks, reran and all went smoothly. Hope this helps someone down the road 🙂