Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to parse html <pre> tag data as tREst response into csv file

Hi Team ,

 

I have an URL, through which I am fetching data(response) using tREst component and logging it into tLogRow console.

But the incoming data is in 'tab' specified format , which is under <pre> tag in the html file( I viewed it through 'inspect element')

The data in the URL is like :

0683p000009M47E.pngThe Data in URL

While I am trying to get the response in CSV/excel format , it is treating the whole record as a single  column.

 

So, how can I organize the incoming response in a CSV file?

Please refer to the attached file for the output, I am getting.

 

 

Thanks in advance for the help.

 

Regards

Subhadeep

Labels (4)
1 Solution

Accepted Solutions
DataTeam1
Creator
Creator

You should use tExtractDelimitedFields with "\t" as field separator to split fields.

 

 

Don't forget to give kudos when a reply is helpful and when your query is answered, please mark the topic as resolved.

View solution in original post

3 Replies
David_Beaty
Specialist
Specialist

Hi,

 

You probably need to use a combination of tSplitRow and then a tExtractDelimitedFields

Or

Write the response out to a temporary file and the read in with tFileInputDelimited.

 

DataTeam1
Creator
Creator

You should use tExtractDelimitedFields with "\t" as field separator to split fields.

 

 

Don't forget to give kudos when a reply is helpful and when your query is answered, please mark the topic as resolved.

Anonymous
Not applicable
Author

 

Hello 
first of all, thank you for your time to help me
in fact, I want to parse XML / HTML from site https://www.cert.ssi.gouv.fr/
I'm expecting to have a table like that

0683p000009M791.png

ie I want to parse HTML and extract all the CERTEFs with a title and a publication date and all the VECs that it exists in each CERTEF
I do not know which component I can use and with which configuration that extracts exactly the same table

thank you for helping me