Skip to main content
Solved

Find links on a webpage

  • May 18, 2018
  • 2 replies
  • 44 views

Forum|alt.badge.img

I need to search a webpage with several links, however I need all the links that have a certain word, how can I do that?

Best answer by jdh

Look at the Help for the HTMLExtractor which gives an example of extracting all the links from a webpage and then outputing them as a list attribute.

 

 

You can then use the ListElementFilter (custom transformer) to filter the list to only contain elements that have your word.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • May 18, 2018

Look at the Help for the HTMLExtractor which gives an example of extracting all the links from a webpage and then outputing them as a list attribute.

 

 

You can then use the ListElementFilter (custom transformer) to filter the list to only contain elements that have your word.

Forum|alt.badge.img

Look at the Help for the HTMLExtractor which gives an example of extracting all the links from a webpage and then outputing them as a list attribute.

 

 

You can then use the ListElementFilter (custom transformer) to filter the list to only contain elements that have your word.
https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/htmlextractor.htm?