LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2014, 10:58 AM   #1
justmat
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
Command to download from the gallery with thumbnails


For example :- www.raagalahari.com/movies/6970/haider-hd-movie-stills.aspx

The above link leads to a site with thumbnails, clicking which loads the full sized image. Now, the full size images are also embedded in a site that ends with '.aspx.'

So I need the app or code to first scan the thumbnails, then go to the site which has the embedded full sized image and then download it.

I hope someone could help.

PS: I just moved from Windows, so I don't have any apps or software that didn't come along with Ubuntu 14.04. I think from the terminal I have downloaded wget (or else it came along with the OS.) Anyway, I had used it once (tried to) for the same task in the question but I don't know what commands to use.

Last edited by colucix; 07-23-2014 at 11:02 AM. Reason: Removed URL tags
 
Old 07-23-2014, 11:56 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Hello, the difference between the thunmb and the big image are a "t" in name, that helps

Basic command would curl the file, then get the links and replace thunmb names

Code:
curl www.blabla.com | perl -ne 's/.*src="(.*gallery.*)t\.jpg".*/$1\.jpg/ and print' > links.txt;
wget -i links.txt

Last edited by keefaz; 07-23-2014 at 12:01 PM.
 
1 members found this post helpful.
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Download through Command Prompt venu5b8 Linux - Newbie 5 03-23-2012 12:49 PM
download from command line nate11000 Linux - Newbie 4 05-26-2006 04:35 PM
command to download the files in command mode. bruse Solaris / OpenSolaris 3 01-12-2006 08:10 AM
digiKam shows thumbnails, but can't download headly21 Linux - Software 4 10-07-2005 09:28 PM
Deleting thumbnails from /root/thumbnails directory moxieman99 Linux - Newbie 3 10-19-2004 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration