Question

Extract info from wensite using HTTP caller

  • 20 November 2022
  • 3 replies
  • 2 views

Userlevel 1
Badge +11

Hi

I tried to read this website

https://stilo.comune.torino.it/albopretorio/#/albo/59

 

but in the response body I don't have the info Pubbl. N°Atto N°Dettaglio (probably some javascript are present but I' not an expert..)

 

How can do this ?

 

thx

 

Francesco


3 replies

Userlevel 5
Badge +29

Looking at the calls the website makes, this URL seems to be returning the information you're after (response is in JSON)

https://stilo.comune.torino.it/albopretorio/dispatcher/alboPretorioServlet/invoke

 

Userlevel 1
Badge +11

Hi

if I copy the address that you provide I received this

image 

so it means that isn't possible to extract/download the data ?

 

thx

 

Francesco

Badge +9

Hi

if I copy the address that you provide I received this

image 

so it means that isn't possible to extract/download the data ?

 

thx

 

Francesco

Yes because it is a POST request. You cannot just click on the link because you will send a GET request which is obviously not supported.

 

If you want to get the information from this site you need to understand the most common request type you have on the internet, how to use F12 on a site, how to export web request from your Developers tools (the thing that opens if you use F12). You also need to download Postman:

https://www.postman.com

And you need to learn how to import your web request into postman. If you have verified that the request works you can attempt to recreate the request in FME with the HTTP caller.

 

I am sorry I cannot give you a cookie cutter answer but every single web request is unique and requires time and effort even from people who have experience.

Reply