.
How did the hacking happen? Once it has done that it can post a comment on the reddit post with a link to the image.
I am aware the code is not in good shape, I keep just patching it manually to keep up with new image hosts, it is just intended to be a fun script, not a work of art! The images are also easily findable on Twitter, where users have been posting them throughout the day.
The next step is to crop just the article out of the page by using pillow, and then save it as a jpg to save bandwidth.
It's unlikely that someone has broken into Apple's iCloud service.
Business Insider's James Cook : The original leaker behind the celebrity photos claimed that they accessed the images using the iCloud accounts of various celebrities.