Help Scraping The Open Graph Image From A Specific Blog URL

Goal - I want to scrape the open graph (‘meta[property=“og:image”]’) image URL from a specific website blog URL

I was going to use the ScrapeNinja module to do this, however, it doesn’t appear to be available via RapidAPI.

I there an alternative way to do this?

Any links to resources or YouTube would be really helpful.

Cheers MJ

ScrapeNinja is available as it’s own integration on Make.

You can subscribe to it on RapidAPI here: ScrapeNinja

ScrapeNinja is very powerful, you just need to write an extractor function.

function (input, cheerio) {
  let $ = cheerio.load(input);
  return { ogImage: $('meta[property="og:image"]').attr('content') }
}

You can view the demo here ScrapeNinja Live Sandbox

Screenshot_2024-06-19_190656

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

3 Likes

Thank you… yes whilst I was able to find the SN module I couldn’t get in to the resource in RapidAPI.

I’m just waiting on a response from support. It might just been down.

Cheers :star_struck:

1 Like