05-09-19 03:47 PM
Hi,
I have a question regarding how to download a file from a web page. I know that there is a Download File action in Utility - File Management. This requires a source URL. When spying a link from a web page it seems impossible to get this source URL with read stage.
Just simply google pdf file.The first result and the source URL is this
http://www.pdf995.com/samples/pdf.pdf
However, I just cannot get this link using a read stage from the google search result page. Any ideas?
Get Document URL(Your result may vary):
https://www.google.com/search?q=pdf+file&rlz=1C1CHBF_enUS838US838&oq=pdf+file&aqs=chrome..69i57j0l5.1551j0j7&sourceid=chrome&ie=UTF-8#spf=1567693634623
Get Document URL Domain:
www.google.com
Get Current Value:
PDF document - pdf 995
06-09-19 03:50 AM
06-09-19 10:10 AM
Hi Eric,
Might be a bit overkill, but you could use the HtmlAgilityPack (https://html-agility-pack.net/select-nodes). Read the whole HTML into this object and search for the link you need using XPath. This has to be in a code block in an object.
Regards, Erik
06-09-19 07:02 PM
06-09-19 07:04 PM