TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-26-2008, 09:52 PM   #1 (permalink)
The Wanderer
 
paulOr's Avatar
 
Join Date: Nov 2007
Location: Edinburgh
Posts: 21
Thanks: 1
paulOr is on a distinguished road
Default [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.
__________________
paulOr.net
paulOr is offline  
Reply With Quote
Old 10-27-2008, 01:22 PM   #2 (permalink)
The Acquainted
 
EyeDentify's Avatar
 
Join Date: Nov 2007
Location: Sweden
Posts: 106
Thanks: 13
EyeDentify is on a distinguished road
Default

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 :)
__________________
Of course the whole point of a doomsday machine, would have been lost if you keep it a secret.
EyeDentify is offline  
Reply With Quote
Old 10-27-2008, 02:13 PM   #3 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

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 :/
codefreek is offline  
Reply With Quote
Old 10-27-2008, 04:43 PM   #4 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:13 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design