Skip to main content

Hi I have read all IMG URL posts in this forum but haven’t found a solution for that works for me.

 

I run a Sharetribe GO market place (only a Sharetribe FLEX is available as app) so I need to pick the data via RSS feed when a new listing is posted. 

In Zapier I receive the data and my IMG URL sits in a text field at the end - like this: 

<p>Text Descriptip of listing.Text Descriptip of listingText Descriptip of listingText Descriptip of listingText Descriptip of listingText Descriptip of listing</p><br />

<a href="https://mysite.com/en/listings/1545797"><img src="https://assets.tribe.com/images/listing_images/images/42863736/medium/ekwador_galapagos_bartolome-e1552569858499__1_.jpeg?1627371877" /></a>

How can I extract / read out the IMG URL? If I use Formatter / Extract URL it takes the first URL (https://mysite.com/en/listings/1545797) but not the image one

 

Any ideas? Thanks so much!

Lawre

thanks. I solved using it Code by Zapier 

but I’ll try to test your suggestion. it could take me a while, thought. I’m begging to hear the summer calling 😁  but at first look it seems an easy way that could work.


Hey ​@soph 👋

Just came across this and it looks as though gatipe’s reply was actually AI-generated spam which is why it didn’t make sense! I’ve removed it to avoid confusion for anyone else that comes across this. 

Not sure if you’ve already got this solved but if you’re wanting to extract the URL from a HTML image tag you can try using a Formatter (Text > Extract Pattern) action and use <imgs^>]*src="(;^"]+)"g^>]*> in the Pattern field. Check out the following guide for details: 

 

Hope that helps. If you run into any trouble with that or have any questions just let us know, keen to make sure you’re all set! 🙂


thanks a lot for your reply. it seems I don’t get it.

if in step 3. Publish Photo/Photo I select Output instead of ID, the answer is something like:

<div> <a href=, https://xxxxx.com/2025/04/xxxxx-xxxx-xxx-xxx

and when tested the answer is an error:

Failed to create a media in Instagram for Business (1.0.16)
The app returned "Not Found".


I have the same problem:

in my RSS feed I have something like this <a href="link"><img title="title" src="image" alt="alt" width="1024" height="614" /></a>

using Formatting by zapier the isolated image url is retrieved with number 6 in output.

but in step 3 -Instagram for Business- with Action event: Publish Photo selected when in Configure I search in photo I have no way to select 6. the only option I have in Text in Formatter by Zapier are Output and ID

none of them allow me to select the image.

 


Hi @lawenceh!

So great to hear that it worked out for you 🙂 Sometimes there are little tricks like this that come with having to try and solve a ton of different problems, and experiment. You can tuck this one away in case you ever have to do something similar in the future!


@nicksimard aaaaaawesome! It works! Superstar thank you this changes a lot for me. really appreciate your help :hand_splayed_tone3:


Hi @nicksimard 

thanks for this! I’ll give this a go and let you know how this works out. Cheers


Hi @lawenceh!

There are a couple of ways you could tackle this but the easiest one (assuming the format will always be like what you show above) would be to use Formatter’s Split Text function:

In the Input field you would map the field in your Zap that contains the text (instead of pasting it like I did). The separator is “ and for the Segment Index you want All (as Separate Fields). That should get you what is shown in the animated GIF, where you then get the image URL by itself in item 4 :)

Why This Works

Because the text you’re checking contains the “ at the beginning of the image URL and at the end of it, you’re able to isolate it by splitting your text and using that as the separator. If you had something like "https://assets.tribe.com/images/listing_images/images/42863736/medium/ekwador_galapagos_bartolome-e1552569858499__1_.jpeg?1627371877> where you’ve got one “ at the beginning of the URL, you would need a second Split Text step where you use > as the separator and keep the first part.


Reply