$eeker has asked for the wisdom of the Perl Monks concerning the following question:

kind monks, I am looking for suggestions on how to find images on a website that match a set of md5 values. Basically do this: crawl a site focus only on image files create md5s of all the image on the site compare the md5s to a set of values write to a file if there are matches -this should be three columns --column one has what md5 matched --column two has the name of the image that was matched --column three has the url of where the image was found I am looking for advise on what might be how you might solve this issue.

Replies are listed 'Best First'.
Re: locate graphic based on md5
by Anonymous Monk on Jan 25, 2011 at 07:36 UTC
    kind monks, I am looking for suggestions on how to find images on a website that match a set of md5 values. Basically do this:

    That sounds exactly the most straight forward way to do it

    I am looking for advise on what might be how you might solve this issue.

    What issue? You've described a good algorithm for doing it, now all that is left is to write the code.

      thank you

      I am NOT a very good scripter/programmer and I wanted someone to basically check my logic

Re: locate graphic based on md5
by MidLifeXis (Monsignor) on Jan 25, 2011 at 14:20 UTC

    • Perl syntax: perlsyn
    • Crawl site: See lwp and WWW sections of cpan.
    • Generate MD5: see md5
    • Write a file: see dbd, dbi, storable, or any other of the many methods of storing data.

    Thanks for the link to perlsyn, ambrus.

    --MidLifeXis

      thank you

      these are excellent resources and I greatly appreciate you posting them for me