TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   [Request] cURL downloader (http://www.talkphp.com/general/3533-request-curl-downloader.html)

paulOr 10-26-2008 09:52 PM

[Request] cURL downloader
 
im looking for a little script that i can enter a url into, or like, 100 urls, and it will download all the images on the specified URL.

its not for anything dodgy, honest, im not stealing anything :P i just need a quick way of downloading alot of images.

If someone has a little bit of code that does such a thing, would be greatly appreciated.

EyeDentify 10-27-2008 01:22 PM

Well :) Why not use your imagination and code one yourself :)

Could be a learning experience.

But maybe you could get an idea on a starting direction.

You could put together a script that fetch the page URL contents and parses out the image URLS and puts them in an array and that array in turn is used to get the images via cURL for example.

Good Luck :)

codefreek 10-27-2008 02:13 PM

like 3 min of google search ?
(not to be a flamer but why join a php learning forum when you don't want to learn)
sorry for small flame :/

sketchMedia 10-27-2008 04:43 PM

if your running linux have a look at wget some thing like this:

Code:

wget -r -l1 -A.gif --no-parent -nd http://site
although that wont download css background images i don't think.

Other than that, it sounds like you need a small spider of sorts, which can be difficult to write properly.


All times are GMT. The time now is 06:30 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0