Okay, here's a page. This is the page that hosts the image.

http://imagecash.net/image.php?file=939164675

Here is the image itself that I cannot access

http://img19.imagecash.net/files666/939164675.jpg

(Janitors note: these URLs may not be safe to access from work)

And this is the script I am working on right now. It takes a URL (as in the first one I posted here) and it scans the image links. Then it follows each of them and gets the image (well, in theory that's what it should be doing.). It can't access the image.

use warnings; use strict; use LWP::Simple; print "Copy ImageCash URL here: "; my $to_get = <STDIN>; chomp($to_get); my $page = get($to_get); my @images; push(@images, "http://www.imagecash.net/image.php?file=$1") while $pag +e =~m[image.php\?file=(\d+)]g; foreach my $image (@images) { my $num = $image; $num =~ m/(\d+\.jpg)/; $num = $1; my $new_page = get($image); $new_page =~ m#src="(http://img\d+\.imagecash\.net/files666)#; getstore("$new_page/$num.jpg", "$num.jpg"); print "Stored image $num.jpg..\n"; }

Edit: g0n - Marked URLs potentially NSFW


In reply to Re^4: getstore protected image by Anonymous Monk
in thread getstore protected image by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.