Hi! Image scraping! That can be fun. I have done this quite a few times.
Thank you for showing the errors that display when you run your script. Only the top error is the problem, the rest will resolve when that one is fixed. I have a couple of hunches as to what this could be and expect it to be a simple enough fix. I would love to take on this job and get your site working again. I could probably do this the same day the job is awarded, given the right credentials to access the code, but, I put 3 days in my proposal to make sure there is time for communication back and forth.
Thank you
ps.
I have skills and experience with image scraping:
Last week I put up a system for a client that logs into a partner's website and downloads all the images they have of their products (with permission). I also wrote a function that compares the images with ones we already have so that it never creates duplicate images and then it processes them all into three image sizes, for thumbnails etc.
I have other examples if you would like to know about them.