Skip to main content
Question

CSS selector


checcosisani
Contributor
Forum|alt.badge.img+12

Hi

I don't understand how have to use the CCS to parse the HTML page

 

http://www.comune.torino.it/albopretorio/alboordinanze.shtml

to obtain as output a table with the 7 value (see the picture)

 

I mean the goal is the parse the HTML page to have all value 1 in the first column the nu,ber 2 in the second column and so on

thx

 

Francesco

 

3 replies

takashi
Influencer
  • October 21, 2019

Hi Francesco, you can populate all the rows (i.e. <tr> elements) of the HTML table into a list attribute with the HTMLExtractor and explode it with the ListExproder, like this.

Then, parse the row to extract your desired columns with some transformers. e.g.

See also the attached workspace example to learn more: htmlextractor-example.fmw (FME 2019.1.3)

Hope this helps.


checcosisani
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • October 29, 2019
takashi wrote:

Hi Francesco, you can populate all the rows (i.e. <tr> elements) of the HTML table into a list attribute with the HTMLExtractor and explode it with the ListExproder, like this.

Then, parse the row to extract your desired columns with some transformers. e.g.

See also the attached workspace example to learn more: htmlextractor-example.fmw (FME 2019.1.3)

Hope this helps.

Hy Takashi

 

thx for help

 

.. I've tried also with this site that apparently is very similar but I'm not able to abtain any data

 

https://www.comune.roma.it/servizi2/gedalbonet/ricerca.action

 

can you help me ?

 

thx

 

Francesco


checcosisani
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • November 19, 2019

Hi

I have new question

What is the correct sintax of http extactor (if posssible) to have in one row the result ?

 

I tried this but the result isn't optimal (a lot of duplicates )

 

I don't know if it's possible to put in the same line of css selector

[id=titolo];[id=riga_link];[id=descrizione]

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings