wget help

Hello all,

A while back I lost a hard drive (didn’t back it up) containing pictures and videos of my little ones. thought they were lost for ever until my wife showed me her photobucket had a lot of them. I’d like to pull those down (and back them up this time). I’d like to use wget but it requires a login with password. I’ve tried the following with no success:

wget --http-user=*** --http-password=*** /smg.photobucket.com/albmux/…

wget --post-data “username=&password=http://smg/phptobucket

wget Image hosting, free photo sharing & video sharing at Photobucket

here’s the response I get:

Connecting to photobucket.com|209.17.74.21|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: `photobucket.com/guestlogin?albumUrl=http:%2F%2Fsmg.photobucket.com%2Falbums%2Fv694%2Fpaytonsmom%2F

Thanks in Advance

It says Saving to ‘file with long name’. Did you check if that file is created and what is in it?

I mean, you say ‘it did not work’, but you do not say how you know this.

thanks for your quick response, I put the meessage below, with 's where account name shows up. Hope this helps. it’s trying to log me in with a guest account I think is the reason why it’s not working. I know it’s not working b/c I’m getting just an index which is the login page for photobucket. I think I need to inbed my username and password in the url as shown with "photobucket.com/guestlogin?albumurl=http:%F%2Fsmg.photobucket.com%2Falbums%2Fv**%2F***%2

test@linux-imij:~> wget --http-user=*** --http-password=*** -r http://smg.photobucket.com/albums///?mediafilter=videos/*
–2009-12-16 12:52:28-- Image hosting, free photo sharing & video sharing at Photobucket
Resolving smg.photobucket.com… 209.17.73.27
Connecting to smg.photobucket.com|209.17.73.27|:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: Login to a private Photobucket.com album [following]
–2009-12-16 12:52:28-- Login to a private Photobucket.com album
Resolving photobucket.com… 209.17.74.21, 209.17.70.11, 209.17.66.11
Connecting to photobucket.com|209.17.74.21|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [text/html]
Saving to: `photobucket.com/guestlogin?albumUrl=http:%2F%2Fsmg.photobucket.com%2Falbums%2Fv694%2F***%2F

 <=>                                   ] 15,635      --.-K/s   in 0.06s   

2009-12-16 12:52:28 (238 KB/s) - `photobucket.com/guestlogin?albumUrl=http:%2F%2Fsmg.photobucket.com%2Falbums%2Fv694%2F***%2F’ saved [15635]

FINISHED --2009-12-16 12:52:28–
Downloaded: 1 files, 15K in 0.06s (238 KB/s)

IMHO it did exactly what you asked for. It downloaded the page with the URL given.

When you want everything that page is linking to (and so forth) you should download recursive by using the *-r *option.

danrche wrote:
> thanks for your quick response, I put the meessage below, with 's where
> account name shows up. Hope this helps. it’s trying to log me in with a
> guest account I think is the reason why it’s not working. I know it’s
> not working b/c I’m getting just an index which is the login page for
> photobucket. I think I need to inbed my username and password in the url
> as shown with
> "photobucket.com/guestlogin?albumurl=http:%F%2Fsmg.photobucket.com%2Falbums%2Fv
**%2F***%2
>
I think the reason you’re not getting them is that you can’t glob
(wildcard) with http. There is no file list per se. Will photobucket
accept an ftp connection? Then you can just pass the URL containing
hostname.domain/SourceDirectory/* and it’ll grab whatever’s in there.

Might print out the wget man page or manual. It’s something like 30
pages long, but it’ll clear up a lot of the confusion…


Kevin Miller
Juneau, Alaska
http://www.alaska.net/~atftb
In a recent poll, seven out of ten hard drives preferred Linux.