I'm looking for a way to scrape an external page for its first/best/largest image and insert a copy of that image as the featured image of a new post on my Wordpress site.
The way that I was hoping this would work would be that a user of my site would enter the URL of an external webpage into a form, and it would scrape that page for its first/best/largest image and set it as the featured image of a new post, which would then be published upon submission of the form. I have the front-end post submission set up with Gravity Forms which allows users of my site to create new posts, but I am confused with the backend web scraping part of it.
Is it possible to achieve this in Wordpress? Maybe using the HTTP API? I'm not a programmer so the HTTP API is a little intimidating to me. I'm hoping someone here with more programming knowledge than me that is familiar with Wordpress can help.