Question

Extracting URLs from a response body from HTTPCaller?

  • 11 August 2022
  • 2 replies
  • 9 views

Badge +3

Hi!

I'm trying to extract parts of a response body from a HTTPCaller. I've read some previous threads on the topic but I just end up more confused. The response body looks something like this:

 

[{"href":"https://download-geotorget.lantmateriet.se/download/99d120aa-9532-43a9-a5a7-6128b333bc88/files/root/militartomrade_kn0125.zip?q=t-CwjGgGH....1Vl4dA==","title":"militartomrade_kn0125.zip","type":"application/octet-stream","length":3792,"displaySize":"3,7 kB"}, {"href":"https://download-geotorget.lantmateriet.se/download/99d120aa-9532-43a9-a5a7-6128b333bc88/files/root/hojd_kn0125.zip?q=t-CwjGgGHQJjXdA1styBEV1B.... ]

 

And so on. It goes on like that, so I shortened it down. The parts I'm trying to 'extract' are several URLs, and I'm looking to create attributes from them, in order to download the zip-files they point to. Does anybody have a solution to this?

 

You might have noticed by now that I'm quite lost in terms of technical lingo and so on, any help is appreciated. Cheers!

 

/Alex


2 replies

Userlevel 4

You can consider using the JSONFragmenter for this.

image

Badge +3

You can consider using the JSONFragmenter for this.

image

Thanks David, I'll see if I can make some progress using this! :)

 

/Alex

Reply