Extract image url from HTML embedded in rss feed

Hi there,

How can I extract the first image url out of each rss item…I am new to n8n so I’m trying to figure this out efficiently.

The rss item includes this html:

<p><img width="480" height="251" src="https://www.url.com"
class="attachment-post-thumbnail size-post-thumbnail post-image" alt="" etc.>

Welcome to the community @jtas21

You need to use a function node and probably use a regular expression to extract the part that you need.

Can you please share the complete item so that I can help you better.

1 Like

Hi thanks so much for the kind help. I was actually able to accomplish what I needed with the feed itself.