so I've posted this same problem in the python section and it was solved the first time, then i had a similar problem which was tricker to solve. Now im looking for a way to do it in C++ purely because i need a way to export my code as an .exe to a friend who refuses to install python.
So, what i had the first time was a program to download the internet comic Ansems Retort from:
Ansem Retort: Combining Comedy and Cancer into a delicious fruity mix
this worked well because the images were saved as "picX.png" where X was the number of the comic, which started at 1 and ended with whatever it was up to. This was simple. Then i tried to download the comic "Pokemon X" from:
Pokmon-X
This proved to be trickier as the pictures were named after the dates they were posted. Some clever codecall programmers came up with a way to cycle through days, try to download images and if the file was too small for it to be a pic, delete it. This seemed like a great idea, but for some reason the site wont let me download images using python.
Quote
t is giving an error about anti-hotlinking, so i believe that the picture may be embedded in some way, and that the url we are trying is simply getting pointed to a re-director, which it cannot handle.
Quote
What you can do is parse the page for the image and directly spawn a get query after you've parsed it so the query seems legitimate, and not hotlinking
Now, like said, even if i got this to work, i still need a way to give it to my friend who does not have python installed. Ive looked at py2exe and such, but im not really prepared to go down that path just yet.
So, im wondering if i can ask a huge favor, if someone could please post some code that would download the comic.
I am using microsoft visual C++ 2008 express edition.
Now, i dont really use C++ much, im hoping i'll know enough to be able to compile whatever anyone can come up with.
Well, thanks heaps in advance.
:D


Sign In
Create Account


Back to top









