HTML Extract Especific Link

I have scraped all the url’s from a website, finally i want to select the url that contains (www.linkedin.com) , ¿how could i do it?




## Information on n8n setup
- **n8n version: 0.209.4**
- **Database you're using (default: SQLite):**
- **Running n8n with the execution process [own(default), ]:**
- **Running n8n via [desktop app]:**

Hey @Exes_Educacion,

Welcome to the community :cake:

It looks like you have the answer there, You already have the URLs so it would just be a case of looping over them to see if one contains linkedin.com. The example below will do this which should help.

2 Likes

Thank you!

1 Like

No problem @Exes_Educacion

In case i want to scrape an email with the same workflow, what value i need?

Is the email a link or just text? You could probably change the if to look for anything that contains a regex pattern that matches an email address or look for something that contains @

It is a link, i tried with @ but gives me other urls that i dont need.

What other urls did it give you?

Perfect, What about looking for mailto:

Its working, thank you very much.

To finish i want to ask you , What metod should you prefer to input data into this Workflow.

I think the are this options , tell me if im wrong:

-Phanthombuster (API)
-Google Maps (API)

The porpose of this is to generate a BBDD automatly. Just telling manually what jobs to look for.

1 Like

Hey @Exes_Educacion,

Inputting data is up to you, It all depends on what you are after the information from.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.